mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
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> |
||
|---|---|---|
| .. | ||
| verify-data-integrity | ||
| backfill-internal-free-plans.ts | ||
| benchmark-internal-metrics.ts | ||
| bulldozer-payments-init.ts | ||
| clickhouse-migrations.ts | ||
| db-migrations.ts | ||
| db-migrations.tsdown.config.ts | ||
| generate-keys.ts | ||
| generate-migration-imports.ts | ||
| generate-openapi-fumadocs.ts | ||
| generate-private-sign-up-risk-engine.ts | ||
| generate-route-info.ts | ||
| patch-required-server-files.mjs | ||
| regen-internal-subscriptions-to-latest.ts | ||
| run-bulldozer-studio.ts | ||
| run-cron-jobs.ts | ||
| run-email-queue.ts | ||