Dynamic API routes return 404 on Vercel when Pages Router i18n is enabled.
Dynamic API routes return 404 on Vercel when Pages Router i18n is enabled.
Problem statement normalized from the linked evidence
CANDIDATE VIEW · NOT A PUBLISHED OPPORTUNITY
01
Qualification checklist
Gate decision: Aug 15, 2026
×
At least 3 independent users2 / 3
NOT MET
✓
At least 2 independent discussions3 / 2
MET
✓
At least 1 supporting signal3 Workarounds · 2 Blocked workflows
MET
02
Observed signals
Users2
Discussions3
Mentions3
Active days2
Source coverageGitHub
TrendUNKNOWN
First seenAug 07, 2026
Last seenAug 12, 2026
Why the gate is holding
Fewer than 3 independent users
Competition research, commercial scoring, and Build Gap analysis do not run until this gate passes.
03
Source evidence
3 evidence records
github · HIGH · Aug 12, 2026
Dynamic (bracket-segment) Pages Router API routes return 404 on Vercel when next.config.js has i18n configured
### Link to the code that reproduces this issue https://github.com/h-evers/nextjs-i18n-dynamic-api-404 ### To Reproduce 1. Clone the reproduction repo and install: `npm install` 2. Build and start it locally: `npm run build && npm start` (this runs `next build --webpack`) 3. Confirm both routes work locally: - `curl -i http://localhost:3000/api/static` → `200` - `curl -i http://localhost:3000/api/dynamic/123` → `200` 4. Deploy the same repo to Vercel (e.g. `vercel deploy`) 5. Request the same two routes on the Verc…
Dynamic (bracket-segment) Pages Router API routes return 404 on Vercel when next.config.js has i18n configured
# Dynamic (bracket-segment) Pages Router API routes return 404 on Vercel when `next.config.js` has `i18n` configured ## Description When a Pages Router project has an `i18n` config in `next.config.js` (single- **or** multi-locale) and is built with the webpack compiler (`next build --webpack`), dynamic `pages/api/**` routes (e.g. `pages/api/dynamic/[id].js`) return a **404** when deployed to Vercel. Static (non-dynamic) API routes are unaffected. The routes work correctly with `next start` against the same producti…
Dynamic Pages API routes return 404 on Vercel when Pages Router i18n is enabled
### Link to the code that reproduces this issue https://github.com/adelrodriguez/nextjs-i18n-dynamic-api-repro ### To Reproduce 1. Open the public reproduction repository. 2. Use commit `b93f5cee3b789905cf27600d66fc7694f80daeb3`. 3. Deploy the repository to Vercel. 4. Use the Next.js framework preset. 5. Keep the default install command and build command. 6. Send these requests: ```bash REPRO_URL="https://nextjs-i18n-dynamic-api-repro-cv5wg0r69-personal-0d17b53c.vercel.app" curl -i "$REPRO_URL/api/ping" curl -i "$R…