mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
Update for production
This commit is contained in:
parent
bcaf91a278
commit
a757fd6401
@ -30,8 +30,10 @@ app.post('/api/logout', function (req, res) {
|
||||
})
|
||||
|
||||
// We instantiate Nuxt.js with the options
|
||||
const isProd = process.env.NODE_ENV === 'production'
|
||||
new Nuxt({
|
||||
dev: process.env.NODE_ENV !== 'production'
|
||||
dev: !isProd,
|
||||
_build: !isProd
|
||||
})
|
||||
.then((nuxt) => {
|
||||
app.use(nuxt.render)
|
||||
|
Loading…
Reference in New Issue
Block a user