Next.js Discord

Discord Forum

Vercel Preview Links not loading client site on initial redirect

Answered
Havana posted this in #help-forum
Open in Discord
HavanaOP
I'm experiencing a strange issue with Vercel previews for my NextJS site. From the Vercel deployment page, if I click on a link to my deployment (ex: my-deployment-branch-myproject.vercel.app) the link actually uses a redirect like: https://vercel.live/link/my-deployment-branch-myproject.vercel.app?via=deployment-domains-list-branch . When clicking the link, my initial page loads fine (a loading state) but no subsequent activity happens (the page should make several requests to an api etc). If I visit the actual deployment directly https://my-deployment-branch-myproject.vercel.app then everything works fine.
It's as if the client code never launches. I also noticed that the vercel preview bar shows up but doesn't do anything either. Again, if visiting directly all works
Answered by Havana
Turns out that disabling vercel preview comments fixes this (https://vercel.com/docs/workflow-collaboration/comments/specialized-usage), and the redirected page works fine.
So it seems that there is some kind of bug in the vercel preview toolbar.
View full answer

1 Reply

HavanaOP
Turns out that disabling vercel preview comments fixes this (https://vercel.com/docs/workflow-collaboration/comments/specialized-usage), and the redirected page works fine.
So it seems that there is some kind of bug in the vercel preview toolbar.
Answer