We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e17b44 commit ccdd23cCopy full SHA for ccdd23c
lib/app.js
@@ -88,9 +88,9 @@ module.exports = (app, options) => {
88
}
89
})
90
91
- config.middlewares.forEach(middleware => {
92
- app.use(middleware)
93
- })
+ if (config.extendServer) {
+ config.extendServer(app)
+ }
94
95
// Render the Vue app using the bundle renderer
96
const renderApp = (req, res) => {
lib/config.js
@@ -8,9 +8,9 @@ module.exports = {
8
favicon: './public/favicon.ico',
9
skipRequests: req => req.originalUrl === '/graphql',
10
nodeExternalsWhitelist: [/\.css$/, /\?vue&type=style/],
11
+ extendServer: null,
12
// Paths
13
distPath: null,
14
templatePath: null,
15
serviceWorkerPath: null,
- middlewares: [],
16
0 commit comments