Skip to content

NODE_ENV is always production #119

@Neddz

Description

@Neddz

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 the process.env.NODE_ENV set to production. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions