Skip to content
Discussion options

You must be logged in to vote

Remix only loads the .env file for you in development. It expects you to define them for production at your hosting platform.

Anyway to load them locally on your production build, you’ll need to install dotenv-cli then update your start script to

dotenv remix-serve build

https://www.npmjs.com/package/dotenv-cli

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kwiat1990
Comment options

@nikolailehbrink
Comment options

Answer selected by kwiat1990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants