Vercel loading production env variables in preview deployments

I'm deploying my project to Vercel and I'm having problems because even on Preview deployments the production environment variables are being loaded.

I have two databases and Firebase apps, one for production and one for dev, but it's always loading the production configs.

When printing process.env.NODE_ENV, the value is production in both Preview and Production deployments.

Any tips?
image.png
Was this page helpful?