diff --git a/docs/config/index.md b/docs/config/index.md index f30d8eda52c050..6973797db4895c 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -467,7 +467,7 @@ export default defineConfig(({ command, mode }) => { - **Type:** `boolean` - **Default:** `true` - Whether your application is a Single Page Application (SPA). Set to `false` if using Vite's [SSR](/guide/ssr#vite-cli) functionality. + Whether your application is a Single Page Application (SPA). Set to `false` for other kinds of apps like MPAs. Learn more in Vite's [SSR guide](/guide/ssr#vite-cli). ## Server Options diff --git a/docs/guide/ssr.md b/docs/guide/ssr.md index d521aa04a2ded2..5662dc65bc2014 100644 --- a/docs/guide/ssr.md +++ b/docs/guide/ssr.md @@ -274,4 +274,4 @@ The CLI commands `$ vite dev` and `$ vite preview` can also be used for SSR apps Use a post hook so that your SSR middleware runs _after_ Vite's middlewares. ::: -2. Set `config.spa` to `false`. This switches the development and preview server from SPA mode to SSR mode. +2. Set `config.spa` to `false`. This switches the development and preview server from SPA mode to SSR/MPA mode. diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 1e46e0d9f727ed..73cc6899815a89 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -206,7 +206,7 @@ export interface UserConfig { } /** * Whether your application is a Single Page Application (SPA). Set to `false` - * if using Vite's SSR functionality. + * for other kinds of apps like MPAs. * @default true */ spa?: boolean