Next.js Discord

Discord Forum

How to avoid different deployment environments?

Unanswered
Broad-snouted Caiman posted this in #help-forum
Open in Discord
Broad-snouted CaimanOP
Hi everyone, I'm new to NextJs & Vercel.

Let me explain my incomprehension:
Since I started deployment my NextJs apps on Vercel with GitHub ( When I push it automatically deploys ) , I started seeing weird habit. On the right side of my repository I can see information about my repo and the concerned field " Deployments ". The thing is I can see 10 deployments, some of them are Production Deployments and others are Preview deployments. I didn't touch any project settings on Vercel.

Is that normal that it creates deployment environments each time the app is built ? And plus the fact that it deploys randomly on Preview or Production? Because on preview mode it doesn't deploy on the desired domain name, the way it works gets me confusing :/

Sorry if this has been already answered I couldn't find on the forum.

Psst : A short explanation on how environments works could be a plus :)

0 Replies