fix: add http to ssr

This commit is contained in:
EETagent 2023-01-05 15:52:06 +01:00
parent 1367ffcf7b
commit 5d205ee8ec

View file

@ -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/, '');