Skip to content

Commit

Permalink
fix: remove --inspect and --inspect-brk from child process
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson authored and vvo committed Mar 19, 2020
1 parent b121514 commit 087a887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/server/next-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class DevServer extends Server {
// discard process.env.NODE_OPTIONS --inspect flag otherwise two debuggers are started in inspect
// mode when users will try to debug their Next.js application with NODE_OPTIONS='--inspect' next dev
NODE_OPTIONS: process.env.NODE_OPTIONS
? process.env.NODE_OPTIONS.replace('--inspect', '')
? process.env.NODE_OPTIONS.replace(/--inspect(-brk)?(=\S+)? ?/, '')
: '',
},
},
Expand Down

0 comments on commit 087a887

Please sign in to comment.