Environment variables
Environment variables securely store API keys, passwords and other sensitive information needed by Edge Functions. They are never exposed in frontend code.
Adding variables
- Open your project in Cadrant and go to the Database panel.
- Click the 'Environment' tab.
- Add your variables as KEY = value (e.g.: STRIPE_SECRET_KEY = sk_live_...).
- Save. Variables are immediately available to your Edge Functions.
Using in functions
Edge Functions access environment variables via Deno.env:
- Each variable is accessible in server code via Deno.env.get('VARIABLE_NAME').
- Variables are never included in the frontend bundle.
- Cadrant automatically configures variable references when you describe an integration.
- You can change values at any time without redeploying the application.
Never share your API keys in a prompt. Only add them via the Environment panel. Cadrant will never ask you to paste a secret key in the chat.