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

fix(node): When serving using js:node executor NODE_ENV should not be undefined #17375

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

ndcunningham
Copy link
Contributor

closes: #16960

@ndcunningham ndcunningham self-assigned this Jun 1, 2023
@ndcunningham ndcunningham requested review from a team as code owners June 1, 2023 18:43
@ndcunningham ndcunningham requested review from AgentEnder and jaysoo June 1, 2023 18:43
@vercel
Copy link

vercel bot commented Jun 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2023 8:35pm

@@ -36,6 +36,7 @@ export async function* nodeExecutor(
options: NodeExecutorOptions,
context: ExecutorContext
) {
process.env.NODE_ENV ??= context?.configurationName ?? 'development';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these both default to the same value? Currently esbuild defaults to production and this hits dev

Copy link
Contributor Author

@ndcunningham ndcunningham Jun 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is serve, I don't think we default it to production right?

@FrozenPandaz FrozenPandaz dismissed AgentEnder’s stale review June 2, 2023 17:56

These should not be the same value.

@FrozenPandaz FrozenPandaz merged commit 8f771e0 into nrwl:master Jun 2, 2023
FrozenPandaz pushed a commit that referenced this pull request Jun 2, 2023
@ndcunningham ndcunningham deleted the fix/js-node-env-undefined branch June 2, 2023 19:29
@github-actions
Copy link

github-actions bot commented Jun 8, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NODE_ENV is undefined
5 participants