No badges yet
No accepted solutions yet
Astro middleware only works in vercel dev but not when deployed
Oh my bad! It doesn't seem like theres anything in the runtime logs too! Completely empty 😅
Astro middleware only works in vercel dev but not when deployed
Hi, So I changed to using `context.redirect` however, it still does the same thing. It works when in `vercel dev` but when deployed, it does nothing. Here are the logs for the most recent build:
Astro middleware only works in vercel dev but not when deployed
I'm using the middleware to intercept any request to `/works` and redirect the user to a random work from my portfolio. It just seems like Vercel is ignoring it entirely, as it...
Astro middleware only works in vercel dev but not when deployed
Hi, Thanks for the quick reply! The `middleware.ts` file is currently situated in the `/src` directory which is what Astro's middleware uses. I've attempted to move the...
Astro middleware only works in vercel dev but not when deployed
When running on `vercel dev`, everything works fine but when I deploy it on vercel, the middleware no longer works? The middleware simply redirects the users to a random page if...