Skip to content

Commit

Permalink
fix(nextjs): fix type error of NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
puku0x committed Dec 7, 2021
1 parent 79fe6f6 commit 864d595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/executors/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async function buildExecutor(
context: ExecutorContext
) {
let dependencies: DependentBuildableProjectNode[] = [];
process.env.NODE_ENV ||= 'production';
(process.env as any).NODE_ENV ||= 'production';

const root = resolve(context.root, options.root);
const libsDir = join(context.root, workspaceLayout().libsDir);
Expand Down

0 comments on commit 864d595

Please sign in to comment.