-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vercel CLI gives gated link instead of public URL #807
Comments
I found that deployment protection can be changed/disabled only per project , so one of the (bad) options is to go to project settings on vercel and disable it manually for every project
it works only if no one used that So I think best way is to go to vercel dashboard using inspect link from CLI and get public URL here |
Yup agree, maybe we should mention this in docs and maybe we could even add "echo" a note after vercel cli is done logging the output |
The note after the Vercel log sounds like a good option! |
Current vercel output is
So what you see inside parentheses on the last line So the Option 1.a is always use Option 1.b is never deploy the app using Note: I never read that last line with prod url 🤦 (or is it relatively new?) and tried to make the script to get that URL, but it's useless since that link is already mentioned. But it's possible to retrieve last app URL for example using vercel project list and finding it inside output Option 2 - Disable deployment protection per project. Doesn't work from cli so user need to do it by hand :( Vercel dashboard -> Your project -> Settings -> Deployment protection -> Vercel authentication -> Disabled Example: To sum up, I think Option 1.a is good enough and easy to use for example for meetups/events where a link needs to be shared. And because of it already works we can close the issue? |
Yes, it seems the way to go. The dev deployments are private by default, if you want to share a deployment you have to deploy it to prod or give access to the dev env, it makes sense. Btw, when I deployed a project for the first time with yarn vercel, I got this link: Production: https://test-vercel-9ydjyytz4-damianmartigmailcoms-projects.vercel.app But this is a private link. If I go to Vercel, I can get the public url. If I deploy the same project with yarn vercel --prod, I got: Production: https://test-vercel-rh1h7bqdl-damianmartigmailcoms-projects.vercel.app Another private link. I'm using Vercel CLI 39.1.3. I'm not getting the public URL, even if I'm using --prod to deploy. Another issue is that not always the public default URL is {projectName}.vercel.app. It seems like the project name is unique only inside each Vercel account, so Vercel will add a suffix if there is another project using this URL. Maybe we can explain better how these URLs work in the deployment doc page https://docs.scaffoldeth.io/deploying/deploy-nextjs-app |
And I don't get any Public url information when deploying with --prod or without it. |
Description :
When you deploy the frontend through CLI, vercel seems to output an gated link in CLI, example :
https://wagmiv2-test-cm4cx4xpi-technophile04s-projects.vercel.app <= If you try to open this link, it will tell you to login to vercel / unauthorized.
Although vercel outputs gated link in CLI, one can guess the public URL since it mostly always follow this convention :
{projectName}.vercel.app
in my case I named the project aswagmiv2-test
so https://wagmiv2-test.vercel.appNot sure what's the best way to handle this, maybe mentioning this about doc or somewhere.
https://www.youtube.com/live/uhTkEq70lls?si=5Cc6qd6wgB5K55MI&t=1766
^ Even in above video when Austin clicked the generated link it showed "Authenticating"
Instead the actual public link URL should have been https://scalingethdemo.vercel.app i.e his
{projectName}.vercel.app
The text was updated successfully, but these errors were encountered: