Skip to main content
For an overview of what environments are and how to request them, see Multisite Overview.

Environment variables

Each ButterCMS environment has its own unique API token. Configure your application to use the correct token per environment:

Application code

Framework-specific examples

Next.js
React (Create React App)
Node.js Express

Draft mode for staging

Add the preview=1 parameter to your API calls in the staging environment to include unpublished draft content:

Environment-based configuration

Staging workflow

A typical staging workflow using draft mode:
  1. Create or edit content and click Save Draft (not Publish)
  2. Go to your staging site (e.g., https://staging.yoursite.com)
  3. Navigate to the specific page to preview the change
  4. Your team verifies the change looks correct on staging
  5. Once approved, publish the content to make it live in production