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"];
if (proxyPaths.some(path => event.url.pathname.startsWith(path))) {
// Return empty response, letting proxy handle it
return new Response(null, { status: 444 });
// completely skip sveltekit routing
return;
}
// Let SvelteKit handle other paths

View File

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