The redirects work in dev when I pnpm run dev but when I deploy to cloudflare they don't.
I'm using output: 'hybrid' and on certain routes/pages I have
[id].ts
---
export const prerender = false;
const { id } = Astro.params;
return Astro.redirect(`/item/${id}`);
---
And this works when I pnpm run dev but not when I deploy to cloudflare. I previously tried to define dynamic redirects like this in my astro config but it wasn't working with cloudflare so I switched to doing it manually