Sign in
Log inSign up
Abhrajit Ray

4 likes

·

5.5K reads

6 comments

Priyanshu Agrawal
Priyanshu Agrawal
Jan 14, 2024

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.

11
·
·1 reply
Abhrajit Ray
Abhrajit Ray
Author
·Jan 14, 2024

I appreciate it. It's really frustrating when chatgpt keeps hallucinating.

10
·
Emmanuel Kusi
Emmanuel Kusi
Oct 11, 2023

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

1
·
·1 reply
Abhrajit Ray
Abhrajit Ray
Author
·Oct 12, 2023

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

1
·
Pat-Idehen Miracle
Pat-Idehen Miracle
Apr 29, 2024

It does work for development, but not on deployment. Tried both on Vercel and Netlify.

·
·1 reply
Abhrajit Ray
Abhrajit Ray
Author
·Apr 30, 2024

When you're deploying your application make sure you have specified all the environment variables in the deployment configuration.

·