Skip to main content

Environment variables

Variables used by the console build, fleet agent, and local development.

Console (Vite) — build time

Set in .env.production, .env.development, or CI from SSM.

VariablePurpose
VITE_CONSTELLATION_API_URLDirect OS API base; enables "Live API" mode
VITE_COGNITO_DOMAINCognito hosted UI domain
VITE_COGNITO_CLIENT_IDOAuth app client id
VITE_COGNITO_REDIRECT_URIOAuth callback URL
VITE_CHAT_API_URLAssistant Lambda/API endpoint
VITE_BILLING_API_URLStripe billing Lambda endpoint

Local dev proxy

VariablePurpose
CONSTELLATION_API_URLTarget for osApiProxy (e.g. http://localhost:8000)

Fleet agent / integrations

VariablePurpose
CONSTELLATION_API_TOKENBearer token for API calls
CONSTELLATION_CONFIG_DIRConfig directory (default ~/.constellation)

Docs site (CI deploy)

VariablePurpose
DOCS_S3_BUCKETS3 bucket for static docs
DOCS_CF_DISTRIBUTION_IDCloudFront distribution ID
DOCS_CF_ALIASAlias for distribution lookup (default docs.constellation.space)

GitHub Actions (console deploy)

See .github/ENVIRONMENTS.md: CONSOLE_*_BUCKET, CONSOLE_*_ALIAS, CONSOLE_*_CF_DISTRIBUTION_ID, CONSOLE_AWS_ROLE_ARN.

Example .env.local

VITE_CONSTELLATION_API_URL=http://localhost:8000
CONSTELLATION_API_URL=http://localhost:8000