Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Commit b236c4a

Browse files
authored
Merge pull request #13 from janesser/master
Fix undefined constructor and build() function
2 parents 86bb35d + 347d70b commit b236c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Nuxt = require('nuxt')
1+
const {Nuxt, Builder} = require('nuxt')
22
const bodyParser = require('body-parser')
33
const session = require('express-session')
44
const app = require('express')()
@@ -25,7 +25,7 @@ let config = require('./nuxt.config.js')
2525
config.dev = !isProd
2626
const nuxt = new Nuxt(config)
2727
// No build in production
28-
const promise = (isProd ? Promise.resolve() : nuxt.build())
28+
const promise = (isProd ? Promise.resolve() : new Builder(nuxt).build())
2929
promise.then(() => {
3030
app.use(nuxt.render)
3131
app.listen(3000)

0 commit comments

Comments
 (0)