-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Describe the bug
When syncing many secrets to a Vercel environment, it can fail because it hits Vercel-enforced API rate limits. Specifically, I believe it's this project env var delete endpoint:
The intermittent error:
Failed to sync secrets: Error deleting environment variable: {"error":{"code":"rate_limited","name":"api-projects-environment-variable-delete","message":"Too many requests - try again in 39 seconds (more than 60, code: \"api-projects-environment-variable-delete\").","limit":{"total":60,"remaining":0,"reset":1761602721}}}
To Reproduce
Steps to reproduce the behavior:
- Create an app with 20+ secrets in an environment
- Sync it to Vercel
- Occasionally, the sync fails from rate limiting.
At this point, Vercel deployments start to fail because required env vars are missing.
Expected behavior
We can put as many secrets as we want, in multiple apps and multiple environments, and sync all of them to our Vercel reliably, without worrying about underlying Vercel API rate limits.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform you are having the issue on:
Additional context
Our specific Phase app having this issue has 8 separate Vercel syncs configured. This Phase app represents a new monorepo we are exploring so these syncs go to different Projects and different Environments in Vercel.
There are many common secrets between the code packages in this monorepo, so creating one Phase app for all of it felt most natural.