Production is throwing 404 for static chunk while is loading right one on local prod mode
Unanswered
AM posted this in #help-forum
AMOP
When I run the app in production using Brave, I encounter this error:
It fails to find the chunk:
However, my local build generates a different chunk:
This only happens in Brave. I’ve tried clearing the cache and opening a private/incognito window, but it still attempts to load the missing chunk.
I’ve also cleared the Vercel cache and redeployed, but the issue persists — Brave keeps looking for the old chunk.
I upgraded to Next.js
Has anyone encountered something similar or found a fix?
P.S.
With
Request URL:
https://www.gigbot.xyz/_next/static/chunks/dc112a36.a9518a678e2240af.js
Request Method:
GET
Status Code:
404 Not Found (from disk cache)
Remote Address:
104.21.80.1:443
Referrer Policy:
strict-origin-when-cross-origin
It fails to find the chunk:
dc112a36.a9518a678e2240af.js
However, my local build generates a different chunk:
dc112a36.a9814603443fe3ec.js
This only happens in Brave. I’ve tried clearing the cache and opening a private/incognito window, but it still attempts to load the missing chunk.
I’ve also cleared the Vercel cache and redeployed, but the issue persists — Brave keeps looking for the old chunk.
I upgraded to Next.js
15.3.0
yesterday — not sure if that’s related.Has anyone encountered something similar or found a fix?
P.S.
With
npm build
- local production mode is fetching the right chunk so it's only on deployed version 🤔