Skip to content

Next.js webpack builds bake absolute paths into server chunks, breaking relocated deploys #23266

Closed

Description

@chargome

next build with webpack emits absolute build-machine paths into .next/server/**:

require("/vercel/path0/node_modules/.../@sentry/server-utils/build/cjs/orchestrion/index.js")

Any deploy that relocates the output — Vercel (/vercel/path0 → /var/task), Docker multi-stage, output: 'standalone' — turns these into MODULE_NOT_FOUND on the first request to a dynamic route. Static routes still work, so the build looks healthy.

Activity

  1. self-assigned this
    on Aug 11, 2026
  2. linear-code commented on Aug 11, 2026

    @linear-code
  3. added a commit that references this issue on Aug 12, 2026
    e6e4a76
  4. added a commit that references this issue on Aug 12, 2026
    d86f943
  5. github-actions commented on Sep 23, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #23267, which was included in the 11.0.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions