Skip to content

Instantly share code, notes, and snippets.

@defly
Created December 27, 2020 18:46
Show Gist options
  • Save defly/8ca78cd1935d73a63b97629fb5b7bb86 to your computer and use it in GitHub Desktop.
Save defly/8ca78cd1935d73a63b97629fb5b7bb86 to your computer and use it in GitHub Desktop.
Create lightest.app report for latest Vercel deployments
#!/bin/bash
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" https://api.vercel.com/v6/now/deployments?limit=5 | \
jq '.deployments | map("https://\(.url)")' | \
curl -H "Content-Type: application/json" -X POST --data-binary @- https://api.lightest.app/api/comparison | \
jq -r '.id' | \
awk '{print "\nhttps://lightest.app/c/"$1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment