+page.server.ts
1 import type { PageServerLoad } from './$types'; 2 3 export const load: PageServerLoad = async ({ params }) => { 4 // Log the attempted access to the catchall route 5 console.log(`Catchall route accessed with path: ${params.catchall}`); 6 7 // Return the catchall path for client-side handling 8 return { 9 catchallPath: params.catchall 10 }; 11 };