Skip to content

Commit

Permalink
fix(js): set node_env when building with esbuild (#17251)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham authored May 29, 2023
1 parent f01cdca commit 923e6d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/esbuild/src/executors/esbuild/esbuild.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export async function* esbuildExecutor(
_options: EsBuildExecutorOptions,
context: ExecutorContext
) {
process.env.NODE_ENV ??= context.configurationName;

const options = normalizeOptions(_options, context);
if (options.deleteOutputPath) removeSync(options.outputPath);

Expand Down

1 comment on commit 923e6d8

@vercel
Copy link

@vercel vercel bot commented on 923e6d8 May 29, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.