vercel-badge icon indicating copy to clipboard operation
vercel-badge copied to clipboard

Use only production deployments by default

Open qurle opened this issue 10 months ago • 1 comments

Hi Artur, By default you use show the status of the last deployment. If it’s a failed preview, that’s usually okay for the project.

In this PR I excluded preview deployments from the badge by default. Now the badge show status of the last production deployment. I also added and documented query parameter to include preview developments.

Example Failed preview: https://badge.qurle.net/api/qurle/vercel-badge?previews=true Should be red

Okay production: https://badge.qurle.net/api/qurle/vercel-badge Should be green

qurle avatar Feb 22 '25 23:02 qurle

@qurle is attempting to deploy a commit to the Artur Dudek's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 22 '25 23:02 vercel[bot]