Link with prefetch doesn't work since 13.5 when deployed to Vercel
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
I've recently upgraded to next 13.5 and everything works well locally but when deployed to Vercel some of my <Link /> fail to load the page, this happens when the link only updates the query params (ie:
href=?foo). If I force disable prefetch then everything works as expected.4 Replies
Barbary LionOP
If I wait 30s then some of the links do work again, so it has to be linked to caching of dynamic routes and prefetching somehow.
Barbary LionOP
Adding more context, if I force prefetch to true, it works fine too, so it has to do with the "automatic" mode described in https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#1-prefetching
Turkish Angora
Sometime I’m seeing that the prefetch fail so when the user click on the link, it does not redirect 🤔
Barbary LionOP
Probably a different issue, for me forcing prefetch to true or false always work, leaving to default which is the "automatic" mentionned in the docs fails randomly.