Skip to content

Commit 7b73851

Browse files
Sync kit docs (#1314)
sync kit docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent ddc11a7 commit 7b73851

File tree

1 file changed

+1
-1
lines changed
  • apps/svelte.dev/content/docs/kit/30-advanced

1 file changed

+1
-1
lines changed

apps/svelte.dev/content/docs/kit/30-advanced/20-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ Since version 2.18, the `reroute` hook can be asynchronous, allowing it to (for
308308
// @errors: 2304
309309

310310
/** @type {import('@sveltejs/kit').Reroute} */
311-
export function reroute({ url, fetch }) {
311+
export async function reroute({ url, fetch }) {
312312
// Ask a special endpoint within your app about the destination
313313
if (url.pathname === '/api/reroute') return;
314314

0 commit comments

Comments
 (0)