I have a React app deployed on Vercel. It was working perfectly fine and I am not sure when this problem started to manifest itself. I am confident that environmental variables are not deployed. I tried to redeploy and to remove and re-add the variables from the dashboard but it didn't make the trick. As I am using Vite I am prefixing all variables name with VITE_. Again this was working just fine until a while ago. I saw some old discussions about this on github. Maybe a reoccurring issue?
Current: environmental variables are not readable in code. Expected: environmental variables are readable
- Use whatever app has environmental variables
- Add the variables in the dashboard
- Deploy and verify if env variables have been added
Deployment URL or Custom Domain:Environment (local, preview, production):Project Framework:Build Settings: Framework Preset: Build Command (if not default): Output Directory (if not default): Install Command (if not default):Node/Runtime Version:Package Manager:Relevant Packages: