mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
More attempts to solve routing issues
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -12,6 +12,7 @@ const config = {
|
||||
precompress: true, // Pre-compresses files
|
||||
polyfill: true
|
||||
}),
|
||||
csrf: { checkOrigin: false },
|
||||
prerender: {
|
||||
entries: ['*'],
|
||||
handleMissingId: 'warn'
|
||||
|
||||
Reference in New Issue
Block a user