You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should be able to get environment variables from AWS and or system environment variables.
Actual Behavior
My issue is exactly as described. I've tried to set environment variables via AWS. I've also tried to set them via using the .bashrc and .bash_profile with no luck. Once I deploy a production build, it simply doesn't work. I've tried loading the environment variable with dotnet-cli and same thing.
Its not seeing any environment variable on my device. Not even the NODE_ENV that remix promises to automatically set in the production build.
console.log(process.env) in the build index file simply returns {}.
The text was updated successfully, but these errors were encountered:
Reproduction
My project was setup using
npx remix init
(nothing special).I ran
npm run build
thennpm start
.System Info
Used Package Manager
npm
Expected Behavior
I should be able to get environment variables from AWS and or system environment variables.
Actual Behavior
My issue is exactly as described. I've tried to set environment variables via AWS. I've also tried to set them via using the
.bashrc
and.bash_profile
with no luck. Once I deploy a production build, it simply doesn't work. I've tried loading the environment variable with dotnet-cli and same thing.Its not seeing any environment variable on my device. Not even the NODE_ENV that remix promises to automatically set in the production build.
console.log(process.env) in the build index file simply returns {}.
The text was updated successfully, but these errors were encountered: