can vercel access .env files
Answered
Masai Lion posted this in #help-forum
Masai LionOP
i have made a weather app and it works in my local server but when i host it to vercel it says no acc to the api bc of an invalid token, can vercel access my token? and if not is there a way to do it?
Answered by B33fb0n3
vercel can access everything that is uploaded to github. Env variables that are not uploaded to github can be added when you navigate in your project -> settings -> environment variables. There you can add the ones, that are not accessable via github
2 Replies
@Masai Lion i have made a weather app and it works in my local server but when i host it to vercel it says no acc to the api bc of an invalid token, can vercel access my token? and if not is there a way to do it?
vercel can access everything that is uploaded to github. Env variables that are not uploaded to github can be added when you navigate in your project -> settings -> environment variables. There you can add the ones, that are not accessable via github
Answer
Masai LionOP
im not too sure why it stopped working when i commited and pushed but ill keep playing with it i guess