Very slow redirect from app router route to a page router route
Unanswered
Ocicat posted this in #help-forum
OcicatOP
How can I speed up the redirects from an app router route to a page router route? Everytime I redirect from the landing page which is written in the app router to the dashboard which is in pages dir, it takes so long seems nothing is happening
5 Replies
I would also recommend using only app router or pages router
@ReverseGem7 https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching
OcicatOP
I was redirecting using the useRouter hook, switched that to Link components and that's crazy fast difference
Using the hook methods took a lot to respond, I really don't know why
Becose Link component automatically prefetch the route