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.jsDraft mode for staging
Add thepreview=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:- Create or edit content and click Save Draft (not Publish)
- Go to your staging site (e.g.,
https://staging.yoursite.com) - Navigate to the specific page to preview the change
- Your team verifies the change looks correct on staging
- Once approved, publish the content to make it live in production