scaffold-eth / scaffold-eth-2

Open source forkable Ethereum dev stack
https://scaffoldeth.io
MIT License
1.34k stars 842 forks source link

Vercel CLI gives gated link instead of public URL #807

Open technophile-04 opened 6 months ago

technophile-04 commented 6 months ago

Description :

When you deploy the frontend through CLI, vercel seems to output an gated link in CLI, example :

Screenshot 2024-04-09 at 3 26 46 PM

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 as wagmiv2-test so https://wagmiv2-test.vercel.app

Not 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

rin-st commented 6 months ago

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

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 as wagmiv2-test so https://wagmiv2-test.vercel.app/

it works only if no one used that projectName. For example I tried wagmiv2-test too and my URL is https://wagmiv2-test-five.vercel.app/.

So I think best way is to go to vercel dashboard using inspect link from CLI and get public URL here

Снимок экрана 2024-04-09 в 14 04 56
technophile-04 commented 6 months ago

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

damianmarti commented 6 months ago

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!