stack/apps/backend
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
..
prisma Add schema to migration that was missing it 2026-05-19 16:14:28 -07:00
scripts fix: patch required-server-files manifest to include CJS boundary marker 2026-05-20 19:07:19 +00:00
src Speed up dummy-project seeding (preview create-project ~15s → ~1.3s) (#1437) 2026-05-20 10:10:22 -07:00
.env [Feat]: set flag to disable billing (#1417) 2026-05-06 14:58:06 -07:00
.env.development [Feat]: set flag to disable billing (#1417) 2026-05-06 14:58:06 -07:00
.eslintrc.cjs tsup for stack-shared (#647) 2025-04-28 21:26:52 -07:00
.gitignore private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
instrumentation-client.ts Upgrade backend to Next.js 16 2025-12-12 16:59:07 -08:00
LICENSE Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
next.config.mjs private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
package.json fix: patch required-server-files manifest to include CJS boundary marker 2026-05-20 19:07:19 +00:00
prisma.config.ts [Fix]: Assortment of Bugs with Timefold Table and Payments (#1348) 2026-04-18 14:17:24 -07:00
tsconfig.json Fix lint 2026-02-27 09:59:26 -08:00
vercel.json External db sync (#1036) 2026-02-05 12:04:31 -08:00
vitest.config.ts Fix flaky tests and preexisting CI failures (#1443) 2026-05-20 10:00:11 -07:00
vitest.setup.ts Customizable ports (#962) 2025-10-20 15:24:47 -07:00