More attempts to solve proxy path conflicts

This commit is contained in:
2025-01-23 16:28:47 +00:00
parent 369aae3b39
commit 4776f53e9d
2 changed files with 3 additions and 5 deletions

View File

@@ -10,10 +10,8 @@
health_status 200 health_status 200
} }
handle /repo/* { route /repo/* {
root * /var/www/html reverse_proxy localhost:1212
try_files * /repo/placeholder.html
file_server
} }
} }

View File

@@ -4,7 +4,7 @@ export const handle = async ({ event, resolve }) => {
if (proxyPaths.some(path => event.url.pathname.startsWith(path))) { if (proxyPaths.some(path => event.url.pathname.startsWith(path))) {
// Return empty response, letting proxy handle it // Return empty response, letting proxy handle it
return new Response(null, { status: 404 }); return new Response(null, { status: 444 });
} }
// Let SvelteKit handle other paths // Let SvelteKit handle other paths