Environment Variables Don't work

Fixed it in mongo db by adding 0.0.0.0/0 to the network access list in my cluster

  1. I used the UI interface, and my environment key wasn’t set
  2. I npm installed vercel and linked the project, I pulled and saw they weren’t even set
  3. I tried REACT_APP and NEXT_PUBLIC prefixes for my next.js app, and it didn’t work
  4. Redeployed multiple times, still did not work
  5. Used the CLI “vercel env add” and “vercel env remove”
  6. Tried removing and adding it back multiple times, still did not work
  7. Im getting the environment variable when I pull, but still nothing is happening



here is the app working:

update it appears the serever is getting them but:


it’s getting yelled at when I make the request

Hi, @neezacoto! Welcome to the Vercel Community :smile:

From what I can see from your post, it seems like you’ve found a solution? For those who may come across this, I wanted to highlight that the fix was:

Thanks again for sharing! Hoping this is helpful to others.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.