stack/apps
Devin AI e971fd8fcd fix: patch required-server-files manifest to include CJS boundary marker
Workaround for vercel/next.js#91661 — Next.js 16.2 omits .next/package.json
from the required-server-files manifest, so Vercel's serverless functions
don't get the CJS boundary marker. Without it, Node.js resolves the project's
"type": "module" and treats the compiled server bundles as ESM, breaking
require() calls at runtime.

This adds a postbuild script that patches the manifest to include the file,
matching the upstream fix in vercel/next.js#93612 (only in canary as of 16.2.6).

The previous approach of removing "type": "module" broke the codegen step
which uses tsx/esbuild and needs ESM for top-level await support.

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
2026-05-20 19:07:19 +00:00
..
backend fix: patch required-server-files manifest to include CJS boundary marker 2026-05-20 19:07:19 +00:00
dashboard Show enabled alpha apps in sidebar and app store (#1449) 2026-05-20 11:07:49 -07:00
dev-launchpad chore: update package versions 2026-05-19 16:22:10 -07:00
e2e Fix flaky tests and preexisting CI failures (#1443) 2026-05-20 10:00:11 -07:00
hosted-components chore: update package versions 2026-05-19 16:22:10 -07:00
internal-tool Upgrade Next.js 2026-05-19 19:01:00 -07:00
mcp Upgrade Next.js 2026-05-19 19:01:00 -07:00
mock-oauth-server chore: update package versions 2026-05-19 16:22:10 -07:00
oauth-mock-server In-source unit tests (#429) 2025-02-14 11:47:52 -08:00
skills Upgrade Next.js 2026-05-19 19:01:00 -07:00