#.env file problem
1 messages · Page 1 of 1 (latest)
you need the VITE_ prefix to load it https://vitejs.dev/guide/env-and-mode.html#env-files
Ahh okay, ty
I'm having the same problem even when adding the prefix
@odd cloak
Can you make a repro on stackblitz?
@odd cloak
Sorry for late reply I was exploring different approaches
I created a new project from scratch and it just worked
Thank you
Thanks for the update!
hey I'm having same, did you resolve it? please help
I resolved it by creating a new blank project and testing that it's working
Then copying code from old project over
I don't know why it wouldn't work in the old one though
okay I'll try
although I've pushed it to Git
can i ask some additional question about .env?
it worked
Yes sure
Sorry I didn't get a notification for the message
Great! I have no idea why does that solves it