Environment variable reference
Gateway
| Variable | Values / purpose | Precedence |
|---|---|---|
GG_DEBUG | 1 or TRUE logs incoming/outgoing byte traffic | Independent debug switch |
GSMU_ENDPOINT | Legacy public variable name that overrides the Graftcode Engine endpoint | Overrides --endpoint |
GC_PROJECT_KEY | Portal project JWT | Overrides --projectKey |
Treat GC_PROJECT_KEY as a secret. GG_DEBUG can expose invocation data and should remain off during
normal production operation.
Generated Grafts
Generated packages (including .NET and Node.js) attempt:
<graft-name>-configat priority 1;graftcode-configat priority 2.
Their values identify configuration content understood by the Hypertube resolver. JSON/YAML content
uses a top-level configurations object; semicolon-delimited connection strings require name and
runtime.
Environment variables outrank files, programmatic configuration, and generated defaults. Configure them before the first generated call.
Example programmatic remote host (field names vary—copy from Vision):
GraftConfig.Host = "ws://localhost/ws";GraftConfig.Stateless = true;