Next.js Discord

Discord Forum

Loading UI Problem

Unanswered
Cuvier’s Dwarf Caiman posted this in #help-forum
Open in Discord
Cuvier’s Dwarf CaimanOP
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 It only happens in dev ig. Can you try in prod?
Cuvier’s Dwarf CaimanOP
Im in dev mode rn.
wait lemme deploy it
in prod, it is much faster
@Anay-208 in prod, it is much faster
Cuvier’s Dwarf CaimanOP
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