Skip to content

Commit

Permalink
docs: update appType docs (vitejs#11003)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored and Clay Smith committed Nov 23, 2022
1 parent 7cf834c commit b2001fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/config/shared-options.md
Expand Up @@ -359,8 +359,8 @@ Env variables starting with `envPrefix` will be exposed to your client source co

Whether your application is a Single Page Application (SPA), a [Multi Page Application (MPA)](../guide/build#multi-page-app), or Custom Application (SSR and frameworks with custom HTML handling):

- `'spa'`: include SPA fallback middleware and configure [sirv](https://github.com/lukeed/sirv) with `single: true` in preview
- `'mpa'`: only include non-SPA HTML middlewares
- `'spa'`: include HTML middlewares and use SPA fallback. Configure [sirv](https://github.com/lukeed/sirv) with `single: true` in preview
- `'mpa'`: include HTML middlewares
- `'custom'`: don't include HTML middlewares

Learn more in Vite's [SSR guide](/guide/ssr#vite-cli). Related: [`server.middlewareMode`](./server-options#server-middlewaremode).

0 comments on commit b2001fe

Please sign in to comment.