Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,35 @@ When using the HTML5 router, you need to set up redirect rules that redirect all
/* /index.html 200
```

## Cloudflare Pages

Cloudflare Pages provides free static hosting with built-in support for
single-page applications.

If you are using `routerMode: 'history'`, ensure that all routes fall back to
`index.html`.

Cloudflare Pages automatically handles SPA routing when deploying a static
site, so no additional rewrite rules are usually required.


## Azure Static Web Apps

Azure Static Web Apps offers free static site hosting with support for SPAs.

When using `routerMode: 'history'`, configure a navigation fallback so that
all routes are served by `index.html`.

Example `staticwebapp.config.json`:

```json
{
"navigationFallback": {
"rewrite": "/index.html"
}
}
```

## Vercel

1. Install [Vercel CLI](https://vercel.com/download), `npm i -g vercel`
Expand Down