Skip to content

Commit 117ea76

Browse files
patak-devbenmccannShinigami92bluwy
authored
feat!: appType (spa, mpa, custom), boolean middlewareMode (#8452)
Co-authored-by: Ben McCann <[email protected]> Co-authored-by: Shinigami <[email protected]> Co-authored-by: Bjorn Lu <[email protected]>
1 parent 66508cc commit 117ea76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

playground/ssr-vue/server.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function createServer(
3737
root,
3838
logLevel: isTest ? 'error' : 'info',
3939
server: {
40-
middlewareMode: 'ssr',
40+
middlewareMode: true,
4141
watch: {
4242
// During tests we edit the files too fast and sometimes chokidar
4343
// misses change events, so enforce polling for consistency
@@ -47,7 +47,8 @@ export async function createServer(
4747
hmr: {
4848
port: hmrPort
4949
}
50-
}
50+
},
51+
appType: 'custom'
5152
})
5253
// use vite's connect instance as middleware
5354
app.use(vite.middlewares)

0 commit comments

Comments
 (0)