watson / ci-info

Get details about the current Continuous Integration environment
MIT License
319 stars 49 forks source link

fix: use VERCEL env var #98

Closed styfle closed 1 year ago

styfle commented 1 year ago

The VERCEL env var is a little more canonical for checking existence, rather than VERCEL_URL which checks the deployment's unique url.

https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables

sibiraj-s commented 1 year ago

Ping @wraithgar

wraithgar commented 1 year ago

This is a follow up PR fell out of discussions had with Vercel when I had asked about the vercel-bitbucket, vercel-gitlab, and vercel-github environments and if VERCEL_URL would still be set in all of them. Turns out there is a canonical way to check if we are in the vercel environment that is currently true everywhere that VERCEL_URL is set, making it a simple fix commit and not a breaking change.

sibiraj-s commented 1 year ago

Published in v3.6.2