Commit 57909866 authored by Tim Neutkens's avatar Tim Neutkens Committed by Arunoda Susiripala

Set dev variable consistent with examples (#939)

parent f3e541fe
...@@ -376,7 +376,8 @@ const { createServer } = require('http') ...@@ -376,7 +376,8 @@ const { createServer } = require('http')
const { parse } = require('url') const { parse } = require('url')
const next = require('next') const next = require('next')
const app = next({ dev: true }) const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler() const handle = app.getRequestHandler()
app.prepare().then(() => { app.prepare().then(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment