From a757fd640102d5d6e584e20f42dd15c51422ea93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 7 Dec 2016 17:13:32 +0100 Subject: [PATCH] Update for production --- examples/auth-routes/server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/auth-routes/server.js b/examples/auth-routes/server.js index f4af24986f..7dfcc7a93e 100644 --- a/examples/auth-routes/server.js +++ b/examples/auth-routes/server.js @@ -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)