// this is a bit scuffed, but these are cf pages redirect functions /** @type {PagesFunction} */ export function onRequest ({ params }) { try { const id = Number(params.id) if (Number.isSafeInteger(id)) { const html = /* html */`
Redirecting... ` return new Response(html, { headers: { 'content-type': 'text/html;charset=UTF-8' } }) } } catch (e) {} return Response.redirect('https://miguapp.pages.dev/') }