vercel deployment .env not found #10321
Unanswered
otecmasters
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I am doing a deployment in vercel. Currently change in
scripts
the settings for npm start and add npm run start:staging since I have 2 environments. Add the variables inside vercel and modify the build commandsenv-cmd -f .env.staging react-scripts build
and the development command a:env-cmd -f .env.staging react-scripts start
. The package.json file looks like this:However it gives me the error in the deployment:
Obviously this started to happen when the files
they were pushed to the repository and I removed them from the cache because
.gitignore
was not preventing their upload. What could be happening?Beta Was this translation helpful? Give feedback.
All reactions