Skip to content

Commit

Permalink
fix: apply patak doc suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed May 22, 2022
1 parent 65b28e7 commit 71187f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/config/index.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/ssr.md
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Expand Up @@ -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
Expand Down

0 comments on commit 71187f3

Please sign in to comment.