Skip to content

Commit

Permalink
fix(build): default NODE_ENV to production (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds authored Aug 16, 2024
1 parent 073d910 commit aa5b349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async function bundleMDX({
publicPath: isWriting ? bundlePath : undefined,
absWorkingDir: cwd,
define: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV ?? 'production'),
},
plugins: [
globalExternals({
Expand Down

0 comments on commit aa5b349

Please sign in to comment.