Skip to content

Commit 648c095

Browse files
authored
docs: Update reroute async example (#13727)
1 parent ee81145 commit 648c095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/30-advanced/20-hooks.md

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

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

0 commit comments

Comments
 (0)