Skip to content

Commit 5790986

Browse files
timneutkensarunoda
authored andcommitted
Set dev variable consistent with examples (#939)
1 parent f3e541f commit 5790986

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ const { createServer } = require('http')
376376
const { parse } = require('url')
377377
const next = require('next')
378378

379-
const app = next({ dev: true })
379+
const dev = process.env.NODE_ENV !== 'production'
380+
const app = next({ dev })
380381
const handle = app.getRequestHandler()
381382

382383
app.prepare().then(() => {

0 commit comments

Comments
 (0)