Skip to Content
PlatformEnvironments

Environments

Environments let you configure feature flags differently for development, staging, and production. Each environment has its own flags and targeting rules, so you can test safely before going live.

Default environments: Every project starts with development and production. Add more (like staging) as needed.

Why use environments?

  • Test features safely in development
  • Validate in staging before production
  • Different configurations per environment
  • Isolated targeting rules
Environments

Creating an Environment

  1. Go to Project SettingsEnvironments
  2. Click “Add Environment”
  3. Enter name and slug (e.g., “Staging” / staging)
  4. Add optional description
  5. Click “Save”

When evaluating flags, specify which environment to use:

const client = new SupaClient({ apiKey: 'your-key', environment: 'production', // or 'development', 'staging', etc. context: { userID: '123' }, })
Last updated on