You've already done the right thing by going on attack challenge mode. I recommend keeping that on. Vercel does have solid built-in DDoS protection, but unfortunately, because those Edge requests were technically "consumed" during the attack, they usually aren't restored to your account automatically.
Here is what I’d recommend doing next:
- Review your caching strategy: Take a look at your setup to ensure you’re maximizing cache efficiency. The more you can serve from the cache, the less strain there is on your resources.
- Consider the Pro plan: If you find you need higher Edge request limits and more robust DDoS protection moving forward, upgrading to Pro might be a good move for the extra peace of mind.
Since billing and request limits are specific to your account, you’ll need to contact Vercel Support directly through your dashboard.
To prevent this in the future, I recommend:
- Implement rate limiting: It’s worth looking into adding rate limiting directly within your application logic.
- Leverage WAF: If you do move to a Pro plan, you can use Vercel’s Web Application Firewall (WAF) features for much tighter security.
- Monitor spikes: Try to keep a closer eye on your usage metrics so you can spot and react to unusual traffic spikes as early as possible.
I hope this gets resolved quickly for you!