Next.js Discord

Discord Forum

Loading UI Problem

Unanswered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
I have problem in displaying my loading ui. Everytime i navigate to different route it feels like im stuck and then a few seconds it will navigate to requested route.

6 Replies

@Anay-208 | Ping in replies It only happens in dev ig. Can you try in prod?
Cuban CrocodileOP
Im in dev mode rn.
wait lemme deploy it
in prod, it is much faster
@Anay-208 | Ping in replies in prod, it is much faster
Cuban CrocodileOP
why i got problem in deploying my nextjs with prisma cuz generated folder is missing? should i include the prisma generate command in build command of vercel?
you need to add prisma generate && before vercel build command