Skip to content

Commit 50b0ffb

Browse files
authored
docs: SPAs deployment documentation for Netlify (#164)
1 parent 26bcf7c commit 50b0ffb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/guide/tips.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ To catch and handle errors in your application, use Svelte's native `<svelte:bou
1919

2020
When deploying a Single Page Application, ensure your web server is configured to handle client-side routing:
2121

22-
- Platforms like **Vercel**, **Netlify**, and **Cloudflare Pages** natively support SPAs and require no additional configuration.
22+
- Platforms like **Vercel** and **Cloudflare Pages** natively support SPAs and require no additional configuration.
23+
- For **Netlify**, see the [official documentation on redirects for SPAs](https://docs.netlify.com/manage/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps).
2324
- For **Nginx**, use the `try_files` directive to serve `index.html` for all routes.
2425
- For **Apache**, use the `FallbackResource /index.html` directive to redirect all requests to `index.html`.
2526
- For **AWS Amplify**, see the [official documentation on redirects for SPAs](https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html#redirects-for-single-page-web-apps-spa).

0 commit comments

Comments
 (0)