[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# Next.js 15 build succeeds but page chunks missing in Vercel deployment

59 views · 0 likes · 2 posts


elng12 (@2296744453m-4495) · 2025-11-23

<!-- Questions that get answered the fastest are the ones with relevant info included in the original post. Be sure to include all detail needed to let others see and understand the problem! -->

<!-- Current versus Expected behavior -->

<!-- Code, configuration, and steps that reproduce this issue -->

<!-- Project information (URL, framework, environment, project settings) -

Hi, I am encountering a critical issue with Next.js 15 App Router.

## ❗ Problem Summary

Local build produces all required page chunk files under:

.vercel/output/static/\_next/static/chunks/app/\[locale\]/puzzles/\[puzzleSlug\]/page-\*.js

But after deploying to Vercel, these page-level chunks are **missing** from the deployment artifacts.
As a result, production pages fail with **404 missing chunk files**.

Cloud build logs show **“Compiled successfully”**, but the final artifact is incomplete.

## 🆔 Deployment ID

dpl_9BxVjkwTqQJEMTXEFRt3wrv8eAbY

## 🔍 What Happens

* Local `npx vercel build` → ✔ chunk files exist
* `npx vercel deploy --prebuilt` → ❌ deployed output missing the same chunk files
* Only layout-level chunks appear in production
* Page-level “page-\*.js” chunks are completely absent
* Fetching the missing chunk via \_next/static results in **404**
* Files API also returns `not_found`

## 📁 Local Build Evidence

(Attached screenshot showing page chunk files in `.vercel/output/...`)

## 🌐 Production Evidence

* Network panel shows 404
* ISG pages fallback forever
* Some routes show skeleton state only
  (Attached screenshot)

## ✔ Already Verified

* Node 20
* pnpm install --frozen-lockfile
* No disabled scripts (`PNPM_IGNORE_SCRIPTS` not set)
* Next.js 15.5.6
* Vercel CLI 48.10.5
* Reproducible across multiple machines

## 🤔 What I Suspect

Possibly related to:

* Vercel Build Output API chunk collection
* Next.js 15 multi-segment dynamic routes
* Page-level chunks being pruned accidentally
* Inconsistent artifact packaging in cloud build vs local prebuilt

## 🙏 Request for Help

Is this a known issue?
Is there anything I can configure to prevent Vercel from dropping page chunk files?

I am happy to provide:

* More build logs
* More artifact screenshots
* Reproduction repo (if needed)

Thanks!


system (@system) · 2025-11-23

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.

https://community.vercel.com/t/debugging-404-errors/437

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking [v0](https://v0.dev/).