feat: docker config for new frontend
This commit is contained in:
parent
c6eba5b51a
commit
bb2fa55cd5
9 changed files with 54 additions and 23 deletions
|
@ -3,6 +3,7 @@ import { PUBLIC_API_BASE } from "$env/static/public";
|
|||
import type { HandleFetch } from "@sveltejs/kit";
|
||||
|
||||
export const handleFetch: HandleFetch = async ({ request, fetch }) => {
|
||||
console.log(PUBLIC_API_BASE, PRIVATE_INTERNAL_API_HOST, PRIVATE_API_HOST);
|
||||
if (request.url.startsWith(`${PUBLIC_API_BASE}/internal`)) {
|
||||
request = new Request(request.url.replace(PUBLIC_API_BASE, PRIVATE_INTERNAL_API_HOST), request);
|
||||
} else if (request.url.startsWith(PUBLIC_API_BASE)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue