#.env variables in production, how?

1 messages · Page 1 of 1 (latest)

compact flame
#

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?

azure hull
#

Did you try uploading the .env file into your server? (No, not with git, manually upload it)

queen sandal
#

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