Next.js Discord

Discord Forum

Shareable link domain

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
There is some weird behavior I'm experiencing with shareable links on vercel. I have some custom domain for dev releases assigned to main in one project and to specific branch in another. Now, it used to be that my shareable link would actually contain the custom domain I assigned by default, no worries there.

For some time now, like weeks, whenever I generate a new link (I had to regenerate it in one project) the assigned domain is actually the vercel one e.g. (project with dev assigned to specific branch) <project-name>-git-<branch-name>-<org-name>.vercel.app?vercel_share=...

Despite of the "readability" of the link itself, it's a big issue for me due to google/discord auth on dev env with redirect url assigned to them. But forget about it. It gets even weirder.
I checked my 2nd project (dev is assigned to main) where I didn't have to reset the link and it's alright, but when I check the newest deployment of preview there and check the "Share" modal info, first of all, it does not recognize that it is currently shared and I have the option to pick "Anyone with the link" (which I'm scared to do and test when possibly I can break my 2nd, properly working link) but when I just click "Copy link" here, it's again <project-name>-git-main-<org-name>.vercel.app/. So assume it's now broken as well (maybe clicking anyone with the link will magically swap the domain but currently I'm not taking the chances due to it being insta saved and possibly breaking the current link).

What's going on? I read all docs, there is nothing about domain picking - if currently there is no simple way to just pick the one I want for shareable link (what if I had even more domains assigned to preview/pre-production?), is there any strategy to make sure how the link will look like? Like the last commit or maybe assigning everything (domains, deploy, share link) in specific order? As I said, I already tried the redeployment, recreating the link without success :x

0 Replies