Skip to content

Commit

Permalink
Set dev variable consistent with examples (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored and arunoda committed Jan 31, 2017
1 parent f3e541f commit 5790986
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 5790986

Please sign in to comment.