mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Set dev variable consistent with examples (#939)
This commit is contained in:
parent
f3e541fe23
commit
579098663c
|
@ -376,7 +376,8 @@ const { createServer } = require('http')
|
|||
const { parse } = require('url')
|
||||
const next = require('next')
|
||||
|
||||
const app = next({ dev: true })
|
||||
const dev = process.env.NODE_ENV !== 'production'
|
||||
const app = next({ dev })
|
||||
const handle = app.getRequestHandler()
|
||||
|
||||
app.prepare().then(() => {
|
||||
|
|
Loading…
Reference in a new issue