A minimal Next.js app that attempts to fetch chunk files with encoded segments like:
/_next/static/chunks/app/%5BcountryCode%5D/(main)/page-23013a4bb4002868.js
-
Install deps:
bun install -
Dev mode:
bun run devVisit
http://localhost:3000/us -
Production build:
bun run build bun run startVisit
http://localhost:3000/usand the page will try to discover real built chunk files and fetch them.
- The direct fetch uses a fixed hash (to show the exact path shape). It will likely 404 unless it coincidentally matches the actual build hash.
- After a production build,
/api/find-chunksscans.next/static/chunks/app/to find real chunk files for[countryCode]/(main)/page-*.jsand attempts to fetch them, reporting HTTP status codes.