Next.js Discord

Discord Forum

router issue

Slate-throated Redstart posted this in #help-forum
Open in Discord
Slate-throated RedstartOP
iam using next 13.4 i had deployed app on vercel iam using router.push() for navigation on click of any navgation the screen is not showing any loader.tsx for 2 to 3 seconds after it showing loader and it is navigating can anyone help me to fix this tried suspense in all pages and also tried of using loader.tsx in all pages directory

5 Replies

are you using dev version (ie npm run dev)? as that may be slowing everything down
B33 underestimated me correct :(
Send your code as well
Slate-throated RedstartOP
its simple code router.push('/page-name')
not in dev iam getting the issue on prod
npm run build