mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-23 05:51: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"];
|
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
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user