mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +00:00
Merge pull request #123 from EETagent/ssr_http_fix
(frontend) force http
This commit is contained in:
commit
9627aae050
1 changed files with 2 additions and 0 deletions
|
|
@ -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/, '');
|
||||
|
|
|
|||
Loading…
Reference in a new issue