#[SOLVED] Invalid url

16 messages · Page 1 of 1 (latest)

pastel pivot
#

env file is not loading
If I harcode url and project id it will work but importing through env is not working
I also have envPrefix: 'VITE_', in vite.config

gilded shoal
#

What does the code look like where you are using the environment variables?

pastel pivot
gilded shoal
#

and you've got a .env file in your root directory?

#

Send your env file with your values removed

pastel pivot
gilded shoal
#

is your env file at the same level as your vite config file/package.json?

pastel pivot
#

no

gilded shoal
#

I believe that is where it should be

#

if you move it there does it work?

pastel pivot
#

let me doit

gilded shoal
#

By default it loads the .env file in the root directory of your project, that is typically where you will find your other configs like vite.config.js and package.json

pastel pivot
#

Thank You
appwritepeepo

#

It is working

gilded shoal
#

Awesome!