Sudden Massive Spike in Edge Requests (404 errors)
- Normal daily edge requests: ~2M/day
- After recent deploy: Sudden spike to ~30-40M/day
- Deployment: Using Next.js 12.3.4
The problem is that I’m Getting constant 404 errors (multiple times per millisecond) for these paths:
/_next/static/{buildId}/_ssgManifest.js
/_next/static/{buildId}/_buildManifest.js
/_next/static/chunks/webpack-{hash}.js
Impact
- Massive increase in costs as these 404s count as edge requests
What I’ve Tried
- Redeploying the same deployment
- Deploying with new commits
- Purging the Cache Data
None of these solutions resolved the issue. The high volume of 404 errors with those paths persists.
Additional Context
- This started after a simple deployment last week
- Cannot consistently reproduce the issue
- Logs show these requests happening every millisecond in production
Questions
- Has anyone encountered similar spikes in edge requests?
- Any suggestions for debugging these constant 404 errors?
- Are there known issues with Next.js 12.3.4 that could cause this?
- This started after a simple deployment last week but I doubt that this is the reason.
- Logs show these requests happening every millisecond in production
Any help or guidance would be greatly appreciated. This is significantly impacting our costs.