Skip to content

Commit

Permalink
Fix forked NODE_OPTIONS except for inspect (#28420)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcnc-hex committed Aug 23, 2021
1 parent d143d98 commit 00f1519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/server/config-utils.ts
Expand Up @@ -4,6 +4,7 @@ import * as Log from '../build/output/log'
import { CheckReasons, CheckResult } from './config-utils-worker'
import { install, shouldLoadWithWebpack5 } from './config-utils-worker'
import { PHASE_PRODUCTION_SERVER } from '../shared/lib/constants'
import { getNodeOptionsWithoutInspect } from './lib/utils'

export { install, shouldLoadWithWebpack5 }

Expand Down Expand Up @@ -31,7 +32,7 @@ export async function loadWebpackHook(phase: string, dir: string) {
forkOptions: {
env: {
...process.env,
NODE_OPTIONS: '',
NODE_OPTIONS: getNodeOptionsWithoutInspect(),
},
},
}
Expand Down

0 comments on commit 00f1519

Please sign in to comment.