From 401562524985b6231103adb5ffc3a2c3a1e581e2 Mon Sep 17 00:00:00 2001 From: Arad Alvand Date: Sat, 10 Sep 2022 02:59:06 +0430 Subject: [PATCH] Remove `for an external URL` from the definition of `handleFetch` --- documentation/docs/07-hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/07-hooks.md b/documentation/docs/07-hooks.md index 86a507e54ea5..d372202fcd1f 100644 --- a/documentation/docs/07-hooks.md +++ b/documentation/docs/07-hooks.md @@ -90,7 +90,7 @@ export async function handle({ event, resolve }) { #### handleFetch -This function allows you to modify (or replace) a `fetch` request for an external resource that happens inside a `load` function that runs on the server (or during pre-rendering). +This function allows you to modify (or replace) a `fetch` request that happens inside a `load` function that runs on the server (or during pre-rendering). Or your `load` function might make a request to a public URL like `https://api.yourapp.com` when the user performs a client-side navigation to the respective page, but during SSR it might make sense to hit the API directly (bypassing whatever proxies and load balancers sit between it and the public internet).