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:
parent
99815e0d65
commit
958b846401
1 changed files with 9 additions and 2 deletions
11
server.js
11
server.js
|
@ -21,14 +21,21 @@ app.use(express.static('static'))
|
||||||
// Set up VueXpress
|
// Set up VueXpress
|
||||||
let options = {
|
let options = {
|
||||||
views: './views',
|
views: './views',
|
||||||
cache: false,
|
cache: true,
|
||||||
watch: process.env.NODE_ENVIRONMENT == 'dev',
|
watch: true,
|
||||||
metaInfo: {
|
metaInfo: {
|
||||||
title: 'Seance',
|
title: 'Seance',
|
||||||
},
|
},
|
||||||
extractCSS: true,
|
extractCSS: true,
|
||||||
cssOutputPath: '/css/styles.css',
|
cssOutputPath: '/css/styles.css',
|
||||||
publicPath: 'public',
|
publicPath: 'public',
|
||||||
|
compilerConfig: {
|
||||||
|
// custom webpack config
|
||||||
|
},
|
||||||
|
compilerConfigCallback: function(webpackConfig) {
|
||||||
|
// change the merged webpackconfig if you like
|
||||||
|
return webpackConfig;
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue