From 958b84640154c2142f224b3f23753e20cea0af6b Mon Sep 17 00:00:00 2001 From: Hippo Date: Tue, 12 May 2020 16:15:18 +0530 Subject: [PATCH] Temporarily fixes "render homepage instead of fetch page" bug For some reason, loading /fetch runs the fetch page, but then ends up rendering the / page instead. Can't figure it out, but this solves it for now so let's go with it till we come up with a proper solution :P --- server.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index f088283..ca6f302 100644 --- a/server.js +++ b/server.js @@ -21,14 +21,21 @@ app.use(express.static('static')) // Set up VueXpress let options = { views: './views', - cache: false, - watch: process.env.NODE_ENVIRONMENT == 'dev', + cache: true, + watch: true, metaInfo: { title: 'Seance', }, extractCSS: true, cssOutputPath: '/css/styles.css', publicPath: 'public', + compilerConfig: { + // custom webpack config + }, + compilerConfigCallback: function(webpackConfig) { + // change the merged webpackconfig if you like + return webpackConfig; + }, }