We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f50b59 commit d14e0acCopy full SHA for d14e0ac
documentation/docs/05-hooks.md
@@ -14,7 +14,7 @@ This function runs every time the SvelteKit server receives a [request](/docs/we
14
/// file: src/hooks.js
15
/** @type {import('@sveltejs/kit').Handle} */
16
export async function handle({ event, resolve }) {
17
- if (event.request.url.startsWith('/custom')) {
+ if (event.url.pathname.startsWith('/custom')) {
18
return new Response('custom response');
19
}
20
0 commit comments