Skip to content
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

Allow setting NODE_ENV for plugin #291

Open
IanVS opened this issue Jul 16, 2021 · 0 comments
Open

Allow setting NODE_ENV for plugin #291

IanVS opened this issue Jul 16, 2021 · 0 comments

Comments

@IanVS
Copy link

IanVS commented Jul 16, 2021

Is your feature request related to a problem? Please describe.
I'm trying to find a way to run cypress locally in development against my own local endpoint as well as in netlify against my production endpoint. Normally, I could key off of process.env.NODE_ENV, but netlify does not set this value, and if I try to set it in [build.environment], then my development node modules are not installed and I cannot build my app.

Describe the solution you'd like
I'd like to have a way to set environment variables for only this plugin

Describe alternatives you've considered
I've looked through the docs to try to find if there's already a way to do this, but cannot find anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant