Skip to content

Commit aa5b349

Browse files
authored
fix(build): default NODE_ENV to production (#232)
1 parent 073d910 commit aa5b349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async function bundleMDX({
182182
publicPath: isWriting ? bundlePath : undefined,
183183
absWorkingDir: cwd,
184184
define: {
185-
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
185+
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV ?? 'production'),
186186
},
187187
plugins: [
188188
globalExternals({

0 commit comments

Comments
 (0)