3 ms·
Here's my workaround for Vercel: - Enable spend management (https://vercel.com/team_name/~/settings/billing https://vercel.com/team_name/~/settings/billing).
by jerrygoyal 3y ago
Here's my workaround for Vercel:
- Enable spend management (https://vercel.com/team_name/~/settings/billing https://vercel.com/team_name/~/settings/billing).
- Set webhook to pause the project: https://vercel.com/docs/rest-api/endpoints/projects#pause-a-project https://vercel.com/docs/rest-api/endpoints/projects#pause-a-...
When the amount hits the targeted value, Vercel will call the webhook that pauses the project.
- viraptor 3y agoHave you tested it end to end? When was the last time? I'm slightly worried about solutions like that. I like when it's all host's responsibility. (Having your own system on top is nice though)
- redman25 3y agoYou could probably set up rate limiting with iptables/nftables as well if it’s a vps.