Use sveltekit fetch instead of window.fetch
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
02a6276240
commit
6394e16a45
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,10 @@ export async function handle({ event, resolve }) {
|
|||
return response;
|
||||
}
|
||||
|
||||
export async function handleFetch({ request, fetch }) {
|
||||
return fetch(request);
|
||||
}
|
||||
|
||||
export async function handleError({ error, event, status, message }) {
|
||||
console.error(error)
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue