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
This commit is contained in:
Hippo 2020-05-12 16:15:18 +05:30
parent 99815e0d65
commit 958b846401
1 changed files with 9 additions and 2 deletions

View File

@ -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;
},
}