mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-23 05:51:57 +00:00
added hook to prevent handling of /repo
This commit is contained in:
6
src/hooks.server.js
Normal file
6
src/hooks.server.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export function handle({ event, resolve }) {
|
||||||
|
if (event.url.pathname.startsWith('/repo')) {
|
||||||
|
return new Response(null, { status: 404 }); // Let Caddy handle it
|
||||||
|
}
|
||||||
|
return resolve(event);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user