4 likes
·
5.5K reads
6 comments
Thanks, man I have been struggling with this for a long time. After ChatGPT, I just forgot that you could find solutions in such beautiful articles.
I appreciate it. It's really frustrating when chatgpt keeps hallucinating.
Thanks for this infomation , it is really helpful but i have a question
in the situation where you omit the VITE when importing your variables , will your program still works fine or it will break
The program won't show any errors but the variable will not get displayed if you don't import it with the exact same name that you gave while defining it. So yes, it won't work if you don't prefix it with VITE
It does work for development, but not on deployment. Tried both on Vercel and Netlify.
When you're deploying your application make sure you have specified all the environment variables in the deployment configuration.