Skip to content

Commit

Permalink
docs: clarify that you can build SPAs with adapter-static (#8502)
Browse files Browse the repository at this point in the history
closes #8396
  • Loading branch information
dummdidumm authored Jan 13, 2023
1 parent 926040b commit 7856745
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pink-bulldogs-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-static': patch
---

docs: clarify that you can build SPAs with adapter-static
2 changes: 1 addition & 1 deletion packages/adapter-static/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @sveltejs/adapter-static

[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. If you'd like to prerender only some pages, you will need to use a different adapter together with [the `prerender` option](https://kit.svelte.dev/docs/page-options#prerender).
[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. It's also possible to create an SPA with it by specifying a fallback page which renders an empty shell. If you'd like to prerender only some pages and not create an SPA for those left out, you will need to use a different adapter together with [the `prerender` option](https://kit.svelte.dev/docs/page-options#prerender).

This comment has been minimized.

Copy link
@pboguslawski

pboguslawski Jan 13, 2023

Please verify and consider change if proposed change is correct:

If you'd like to prerender only some pages and not create an SPA for those left out, you will need to leave a fallback page not configured or use a different adapter together with the prerender option .


## Usage

Expand Down

0 comments on commit 7856745

Please sign in to comment.