-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NODE_ENV is always production
#119
Comments
hi, yes, the line is here Line 72 in d0cb744
pr welcome if you wanna fix |
As a workaround you could define a const webpack = require('webpack')
module.exports = {
plugins: [
new webpack.EnvironmentPlugin({ NODE_ENV: 'development' }),
],
} And run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I am having some trouble with the following:
I have been trying to overwrite the NODE_ENV variable with no success.
If I do:
NODE_ENV=development netlify-lambda build <folder>
all the functions inside
<folder>
will have theprocess.env.NODE_ENV
set toproduction
. I believe this might be because webpack is always run in production mode.Please let me know if I am doing anything wrong.
Thank you!
The text was updated successfully, but these errors were encountered: