Next.js Discord

Discord Forum

Next.js <Link> prefetch returns 404 on Vercel production

Unanswered
West African Crocodile posted this in #help-forum
Open in Discord
West African CrocodileOP
Hello,

I have a Next.js 16 project.

In local production, everything works fine.

On Vercel, prefetching fails: fetching https://name.vercel.app/contact/?_rsc=1r34m returns 404, even though the page /contact/ exists and loads normally when visited directly.

Does anyone know a reliable workaround for prefetching <Link> on Vercel in production?

Thanks!

0 Replies