Environment variables
Use environment variables for configuration and secrets: database URLs, API keys, feature flags.
Set variables
Section titled “Set variables”- When creating an app: in Advanced Settings → Environment Variables, one
KEY=valueper line. Lines starting with#are ignored, andexportprefixes and surrounding quotes are handled. - Later: open the app, go to Builds & Settings → Environment Variables, click Add Variable, then Save Environment.
- From the CLI:
hivepod deploy --env DATABASE_URL=postgresql://...(repeat--envfor each). - From the MCP server: the
set_envtool.
DATABASE_URL=postgresql://usr_1a2b3c4d:secret@dark-rocket-k3x9.db.dockhive.xyz:10042/app?sslmode=requireSESSION_SECRET=change-meNODE_ENV=production- Names start with a letter or
_and contain only letters, digits and_(up to 128 characters). - Values are a single line.
- Up to 200 variables and 64 KB in total per app.
PORTis set for you.
Secrets stay secret
Section titled “Secrets stay secret”Every value is encrypted at rest and never shown again in the console: existing values appear as •••••••• (unchanged). Values that appear in build or health-check output are replaced with ***.
When changes take effect
Section titled “When changes take effect”Saving variables doesn’t restart your app. They apply on the next deploy: click Redeploy (or push a commit with push to deploy on). A rollback also uses your current variables.