Skip to content

Commit 89282d2

Browse files
Sync kit docs (#1054)
sync kit docs Co-authored-by: Rich-Harris <[email protected]>
1 parent 8c80acd commit 89282d2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

apps/svelte.dev/content/docs/kit/98-reference/50-configuration.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,43 @@ The value of `url.origin` during prerendering; useful if it is included in rende
10201020

10211021
</div>
10221022

1023+
## router
1024+
1025+
<div class="ts-block-property-bullets">
1026+
1027+
1028+
1029+
</div>
1030+
1031+
1032+
1033+
<div class="ts-block-property-children">
1034+
1035+
<div class="ts-block-property">
1036+
1037+
```ts
1038+
// @noErrors
1039+
type?: 'pathname' | 'hash';
1040+
```
1041+
1042+
<div class="ts-block-property-details">
1043+
1044+
<div class="ts-block-property-bullets">
1045+
1046+
- <span class="tag">default</span> `"pathname"`
1047+
- <span class="tag since">available since</span> v2.14.0
1048+
1049+
</div>
1050+
1051+
What type of client-side router to use.
1052+
- `'pathname'` is the default and means the current URL pathname determines the route
1053+
- `'hash'` means the route is determined by `location.hash`. In this case, SSR and prerendering are disabled. This is only recommended if `pathname` is not an option, for example because you don't control the webserver where your app is deployed.
1054+
1055+
</div>
1056+
</div>
1057+
1058+
</div>
1059+
10231060
## serviceWorker
10241061

10251062
<div class="ts-block-property-bullets">

0 commit comments

Comments
 (0)