Skip to content

Commit

Permalink
feat!: appType (spa, mpa, custom), boolean middlewareMode (#8452)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
4 people committed Jun 18, 2022
1 parent 66508cc commit 117ea76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions playground/ssr-vue/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function createServer(
root,
logLevel: isTest ? 'error' : 'info',
server: {
middlewareMode: 'ssr',
middlewareMode: true,
watch: {
// During tests we edit the files too fast and sometimes chokidar
// misses change events, so enforce polling for consistency
Expand All @@ -47,7 +47,8 @@ export async function createServer(
hmr: {
port: hmrPort
}
}
},
appType: 'custom'
})
// use vite's connect instance as middleware
app.use(vite.middlewares)
Expand Down

0 comments on commit 117ea76

Please sign in to comment.