amondnet / vercel-action

This action make a deployment with github actions instead of Vercel builder.
https://vercel.com/docs/cli
MIT License
636 stars 98 forks source link

🧩 Feature Request: Mask Preview/Production URLs from log output #58

Open colinwilson opened 3 years ago

colinwilson commented 3 years ago

Description

Upon execution of /usr/local/bin/npx vercel -t ... Preview/Production URLs are currently exposed in the deploy logs. This may not always be desirable in public repos.

Vercel CLI 21.0.1
- Deploying colinwilson/static-exp

- Deploying colinwilson/static-exp

Inspect: https://vercel.com/colinwilson/static-exp/k9vv3xpaw [2s]

Inspect: https://vercel.com/colinwilson/static-exp/k9vv3xpaw [2s]
https://static-exp-k9vv3xpaw.vercel.app
https://static-exp-k9vv3xpaw.vercel.app- Queued

- Queued

- Building

- Building

Preview: https://static-exp-git-refs-headsmaster.colinwilson.vercel.app [10s]
To deploy to production (static-exp.vercel.app), run `vercel --prod`

Preview: https://static-exp-git-refs-headsmaster.colinwilson.vercel.app [10s]
To deploy to production (static-exp.vercel.app), run `vercel --prod`
set preview-url output
/usr/local/bin/npx vercel inspect https://static-exp-k9vv3xpaw.vercel.app -t ***
Vercel CLI 21.0.1

Vercel CLI 21.0.1
- Fetching deployment "https://static-exp-k9vv3xpaw.vercel.app" in colinwilson

- Fetching deployment "https://static-exp-k9vv3xpaw.vercel.app" in colinwilson

> Fetched deployment "static-exp-k9vv3xpaw.vercel.app" in colinwilson [950ms]

> Fetched deployment "static-exp-k9vv3xpaw.vercel.app" in colinwilson [950ms]

  General

    id      dpl_FcBSCF7JhEekRNYgYefdZdnCjr12
    name    static-exp

  General

    id      dpl_FcBSCF7JhEekRNYgYefdZdnCjr12
    name    static-exp
    readyState  READY
    url     static-exp-k9vv3xpaw.vercel.app

    readyState  READY
    url     static-exp-k9vv3xpaw.vercel.app

https://github.com/colinwilson/static-site-to-vercel/runs/1535193554?check_suite_focus=true#step:4:15

Request

Add a (boolean/string) parameter to mask the Preview/Production URLs from the output?

Do you think this could be useful?

amondnet commented 3 years ago

@colinwilson Yes it might be useful to someone. The log seems to be output from vercel cli. I'll check if I can mask that url.

colinwilson commented 3 years ago

@amondnet Thank you.