Appearance
Return
How to properly use multiple environments
Keep separate settings for development and production so you can test safely.
Steps at a glance ​
- Create a development environment and a production environment.
- Put different keys and URLs in each environment.
- Test in development, then switch to production when ready.
1) Decide what changes per environment ​
Common examples:
- Database or API base URLs
- SSO Provider settings
- Email provider keys
2) Store environment-specific values ​
- Open the environment settings in your project.
- Add your development values in the development environment.
- Add your production values in the production environment.
3) Test correctly ​
- Always test new changes in development first.
- When you deploy, confirm the production environment is selected.
Common pitfalls ​
It works in development but not in production ​
- The production environment might be missing a value (key, URL, or allowed domain).

