mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 13:41:56 +00:00
More attempts to solve proxy path conflicts
This commit is contained in:
@@ -10,10 +10,8 @@
|
||||
health_status 200
|
||||
}
|
||||
|
||||
handle /repo/* {
|
||||
root * /var/www/html
|
||||
try_files * /repo/placeholder.html
|
||||
file_server
|
||||
route /repo/* {
|
||||
reverse_proxy localhost:1212
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ export const handle = async ({ event, resolve }) => {
|
||||
|
||||
if (proxyPaths.some(path => event.url.pathname.startsWith(path))) {
|
||||
// Return empty response, letting proxy handle it
|
||||
return new Response(null, { status: 404 });
|
||||
return new Response(null, { status: 444 });
|
||||
}
|
||||
|
||||
// Let SvelteKit handle other paths
|
||||
|
||||
Reference in New Issue
Block a user