diff --git a/frontend/src/hooks.server.ts b/frontend/src/hooks.server.ts index b4716b0..222ce8b 100644 --- a/frontend/src/hooks.server.ts +++ b/frontend/src/hooks.server.ts @@ -14,6 +14,8 @@ export const handleFetch: HandleFetch = async ({ request, fetch, event }) => { const url = new URL(request.url); + url.protocol = "http:"; + url.host = process.env.PORTFOLIO_API_HOST ?? '127.0.0.1:8000'; url.pathname = url.pathname.replace(/^\/api/, '');