Environment Variables

Environment Variables

Environment variables allow you to store secrets (like Stripe API keys or Supabase roles) securely without hardcoding them into your repository.

Managing Secrets

  1. Go to the Settings tab in your workspace.
  2. Select the Environment section.
  3. Add your key-value pairs.
  4. Click Save.

How it Works

These secrets are encrypted with a per-project key and synced to BYOB's secure D1 edge database. Whenever your project's container spins up, or when your app is deployed to production, these variables are decrypted and injected directly into the runtime environment, ensuring maximum security for your API keys.