More attempts to solve routing issues

This commit is contained in:
2025-01-23 16:47:24 +00:00
parent 118a18ee4c
commit f32a4ed0af
2 changed files with 3 additions and 2 deletions

View File

@@ -3,8 +3,8 @@ export const handle = async ({ event, resolve }) => {
const proxyPaths = ["/repo"]; const proxyPaths = ["/repo"];
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 // completely skip sveltekit routing
return new Response(null, { status: 444 }); return;
} }
// Let SvelteKit handle other paths // Let SvelteKit handle other paths

View File

@@ -12,6 +12,7 @@ const config = {
precompress: true, // Pre-compresses files precompress: true, // Pre-compresses files
polyfill: true polyfill: true
}), }),
csrf: { checkOrigin: false },
prerender: { prerender: {
entries: ['*'], entries: ['*'],
handleMissingId: 'warn' handleMissingId: 'warn'