Environment variables
Environment variables belong to a service environment. This allows separate branches to use different endpoints, credentials, and feature settings.
Add a variable
- Open the service environment.
- Select Environment Variables.
- Add the key and value requested by your application.
- Save the changes.
- Redeploy when the application needs a new runtime with the updated values.
Recommended practices
- Keep secrets out of Git.
- Use distinct credentials for production and non-production environments.
- Match key names exactly, including case.
- Rotate credentials if they appear in logs or source history.
- Review template-required fields before deployment.
The AI agent can detect likely variable names, but it cannot supply credentials for external providers unless those values are provided through the deployment flow.