Chalk lets you inject environment variables into the runtime for your resolvers. You can add an environment variable through the dashboard, where you’ll find a form that looks like this:
Add a new environment variable. All environment variables are encrypted.
Here, you can provide any environment variable you need. The value will be available in all the environments you check on the right side of the pane.
Environment variables can include secrets or configuration. All environment variables are securely stored using a Key Management Service.
value = os.getenv("my_variable")
Chalk also provides a few environment variables that you can use in your resolvers.
|The root directory of the application. This variable is set for both branch and standard deployments.
|The ID of the deployment
|The ID of the team
|The ID of the project
|The id of the active environment (eg.
|The name of the active environment (eg.