Skip to content

Commit 3766e33

Browse files
authored
day 21 (#1055)
1 parent 89282d2 commit 3766e33

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apps/svelte.dev/content/blog/2024-12-01-advent-of-svelte.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,14 @@ The [playground](/playground) had a secret Vim mode that you could activate by a
168168
- [tutorial](/tutorial)
169169
- [demo video](https://bsky.app/profile/svelte.dev/post/3ldqli3lk4k2g)
170170

171-
## Day 21
171+
## Day 21: hash-based routing
172172

173-
Coming soon!
173+
SvelteKit now supports hash-based routing, in addition to the default pathname-based routing. This can be useful for purely client-side apps (including those you might build with Electron or Tauri), or situations where you don't control the webserver and need to put everything on a single page.
174+
175+
It comes with caveats — you can't use server-rendering (or any server logic), and you need to make sure all your internal links start with `/#/` or they won't work. Other than, it's just like any other SvelteKit app.
176+
177+
- [docs](/docs/kit/configuration#router)
178+
- [demo](https://hash-based-routing.vercel.app/)
174179

175180
## Day 22
176181

0 commit comments

Comments
 (0)