mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-18 14:01:04 +00:00
fix: sveltekit logging
This commit is contained in:
parent
ac4aa9643f
commit
ef5a304277
1 changed files with 0 additions and 6 deletions
|
|
@ -3,12 +3,8 @@ import * as dotenv from 'dotenv';
|
|||
|
||||
export const handleFetch: HandleFetch = async ({ request, fetch, event }) => {
|
||||
dotenv.config();
|
||||
|
||||
console.log(`SSR: handleFetch() BEFORE: ${request.method} ${request.url}`);
|
||||
|
||||
const cookie = event.request.headers.get('cookie') || '';
|
||||
|
||||
console.log(`SSR: handleFetch() cookie: ${cookie}`);
|
||||
|
||||
request.headers.set('cookie', cookie);
|
||||
|
||||
|
|
@ -22,7 +18,5 @@ export const handleFetch: HandleFetch = async ({ request, fetch, event }) => {
|
|||
|
||||
request = new Request(url, request);
|
||||
|
||||
console.log(`SSR: handleFetch() AFTER: ${request.method} ${request.url}`);
|
||||
|
||||
return fetch(request);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue