You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
Vercel has three environments, which map to different stages of the deployment lifecycle:
Production is used for the branch configured as the production branch (usually main). Deployments from that branch go to the live site.
Preview is used for all other Git branches, including pull requests, feature branches, and persistent branches like staging. If you deploy a staging branch, it still runs under the Preview environment unless you explicitly create a separate environment in Vercel and map that branch to it.
Development is only used for local development via the Vercel CLI (vercel dev). It allows your local environment to pull env vars from Vercel, but it does not apply to Git branches or deployments on the platform.
Creating a staging environment
On the Hobby plan, staging is implemented by scoping Preview environment variables to a branch. On the Pro plan, staging can be configured as a dedicated environment with its own settings.
You can create a dedicated environment (Vercel Pro):
Go to Project → Settings → Environments
Click Create Environment
Name it staging
Enable Branch Tracking and select the staging branch
Add environment variables scoped to this environment
With this setup, the staging branch deploys to its own environment and is fully separate from Preview and Production.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
Vercel has three environments, which map to different stages of the deployment lifecycle:
vercel dev). It allows your local environment to pull env vars from Vercel, but it does not apply to Git branches or deployments on the platform.Creating a staging environment
On the Hobby plan, staging is implemented by scoping Preview environment variables to a branch. On the Pro plan, staging can be configured as a dedicated environment with its own settings.
You can create a dedicated environment (Vercel Pro):
Project→Settings→EnvironmentsCreate EnvironmentstagingBranch Trackingand select thestagingbranchWith this setup, the staging branch deploys to its own environment and is fully separate from Preview and Production.
All reactions