Skip to main content

Environments

SpaceOS provides separate environments for development, testing, and production.

Environment Comparison

AspectSandboxProduction
Base URLhttps://sandbox-api.zenspace.iohttps://api-spaceos.zenspace.io
DataTest data, can be resetReal customer data
PaymentsStripe test modeStripe live mode
DevicesSimulated adaptersReal IoT devices
WebhooksFull functionalityFull functionality
Rate limitsRelaxedProduction limits

Configuration

ZenCore supports environment switching:

npm run env:local # Local development
npm run env:dev # Development/sandbox
npm run env:production # Production

Key Environment Variables

VariablePurpose
API_BASE_URLBase URL for the API (default: https://api-spaceos.zenspace.io)
DB_HOST, DB_PORT, DB_DATABASEPostgreSQL connection
JWT_SECRETToken signing key
STRIPE_SECRET_KEYStripe API key (test vs. live)
STRIPE_WEBHOOK_SECRETStripe webhook verification
MRD_API_KEYZenEdge integration key

Next Steps