1
0
Fork 0
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:
Tim Neutkens 2017-01-31 15:18:10 +01:00 committed by Arunoda Susiripala
parent f3e541fe23
commit 579098663c

View file

@ -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(() => {