#.env variables in production, how?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
When I build my app, it can’t access the .env variables. I know that on some hosters like Vercel you can set them on their platform, but how do I do it when I host my server myself or on ngrok?
Did you try uploading the .env file into your server? (No, not with git, manually upload it)
Remix App Server doesn’t load .env in prod if you’re using that, so you will have to use the dotenv package to load them