Skip to content

Commit

Permalink
Add more debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Jun 30, 2024
1 parent 403f2b7 commit 56d2927
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Website/src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const handleFetch: HandleFetch = ({ request, fetch, event }) => {
// Rewrite URL to internal
const newUrl = request.url.replace(requestUrl.origin, internalApiUrl.origin);
console.log(`Rewriting request: from ${requestUrl.href} to ${newUrl}`);
console.log({ cookies: event.cookies.getAll() });
return fetch(new Request(newUrl, request));
}

Expand Down

0 comments on commit 56d2927

Please sign in to comment.