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 suggest setting NODE_ENV in the shell or via a Ruby-specific env file approach. If you want to dig into it, PRs are of course welcomed but the above is a simple solution to at least unblock you.
I'm having this in my rails application.rb:
config.browserify_rails.node_env = "production"
Inside my script which will be browserified and babelified I'm logging this:
console.warn(`My env: ${ process.env.NODE_ENV }`)
And I'm getting:
My env: undefined
.Shouldn't I be getting
My env: production
instead?The text was updated successfully, but these errors were encountered: