stack/apps/backend
Devin AI 5edfb27ff8 fix: remove "type": "module" from backend package.json to fix Vercel ESM error
Next.js 16.2 has a known regression (vercel/next.js#91661) where the
.next/package.json CJS boundary marker is not included in the Vercel
serverless function bundle. This causes Node.js to walk up to the
project's package.json, see "type": "module", and treat the compiled
server bundles as ESM — breaking the require() calls in the generated
route files.

The fix (vercel/next.js#93612) is only in canary (16.3.0-canary.17+),
not yet in a stable release. Removing "type": "module" is safe here
because:
- All backend source is TypeScript (no .js files)
- next.config is .mjs (explicit ESM)
- .eslintrc is .cjs (explicit CJS)
- Scripts use tsx (handles ESM regardless)
- TypeScript's moduleResolution: bundler is independent of this field

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
2026-05-20 18:46:54 +00:00
..
prisma Add schema to migration that was missing it 2026-05-19 16:14:28 -07:00
scripts [Refactor] [Fix] Remove default prod creation (#1350) 2026-05-15 10:38:33 -07: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: remove "type": "module" from backend package.json to fix Vercel ESM error 2026-05-20 18:46:54 +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