Use vars for plain, non-sensitive configuration such as public API base URLs, feature flags, log levels, and OAuth client IDs. Use secrets for credentials, tokens, and signing keys.Documentation Index
Fetch the complete documentation index at: https://docs.edgespark.dev/llms.txt
Use this file to discover all available pages before exploring further.
Declare allowed keys
Runtime keys are typed inserver/src/defs/runtime.ts:
server/src/defs/runtime.ts
Set vars from the CLI
Read vars at runtime
server/src/index.ts
vars.get(...) returns string | null, so handle missing values where appropriate.
Vars are environment-scoped
Vars are scoped to the current environment. For newly created projects today, that means the current default production environment.Public staging support is coming soon. When it lands, staging and production will keep separate var sets under the same key names.
Common pattern with auth config
OAuth client IDs usually belong in vars, while OAuth client secrets belong in secrets:configs/auth-config.yaml
See also
vars reference
The runtime API for reading plain vars with
vars.get(...).Manage secrets
Use the secure browser-based secret flow for sensitive values.