mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 14:41:25 +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
|
// We instantiate Nuxt.js with the options
|
||||||
|
const isProd = process.env.NODE_ENV === 'production'
|
||||||
new Nuxt({
|
new Nuxt({
|
||||||
dev: process.env.NODE_ENV !== 'production'
|
dev: !isProd,
|
||||||
|
_build: !isProd
|
||||||
})
|
})
|
||||||
.then((nuxt) => {
|
.then((nuxt) => {
|
||||||
app.use(nuxt.render)
|
app.use(nuxt.render)
|
||||||
|
Loading…
Reference in New Issue
Block a user