The symptom
An app works on a local machine but reports a missing setting after deployment. This sample focuses on safe checks; it does not assume a particular provider or framework.
A safe comparison
- Compare variable names, not secret values, between local and deployed environments.
- Confirm the variable is enabled for the environment that failed, such as preview or production.
- Check spelling and any framework-specific public-variable prefix requirements.
- If the platform injects variables at build time, create a fresh deployment after changing configuration.
- Inspect logs for the first missing-setting message, with sensitive values redacted.
Never paste a real .env file, API key or production credential into a public issue or support form.
Scope
Build-time and runtime configuration differ across frameworks and hosting providers. Confirm the specific provider's current documentation before changing a production project.
References
- Vercel environment variables — environment scope and when changes take effect are provider-specific.