Update for production

This commit is contained in:
Sébastien Chopin 2016-12-07 17:13:32 +01:00
parent bcaf91a278
commit a757fd6401

View File

@ -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)