Millions of 404 Edge Requests to _ssgManifest, _buildManifest

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

  1. Redeploying the same deployment
  2. Deploying with new commits
  3. 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

  1. Has anyone encountered similar spikes in edge requests?
  2. Any suggestions for debugging these constant 404 errors?
  3. 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.

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

Hi @abedshamia, welcome to the Vercel Community!

I’m sorry that you’re facing such issue. Could you share the following information:

  • Your next.config.js/ts file contents
  • What was the change after which you noticed these spikes?
  • Can you try reverting the deployments to an older version where traffic was normal to see that fixes it?
1 Like