fix(prisma): Explain schema.prisma config settings#1761
Conversation
✅ Deploy Preview for cedarjs canceled.
|
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 7s | View ↗ |
nx run-many -t build |
✅ Succeeded | 4m 22s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-05-12 20:47:13 UTC
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build |
✅ Succeeded | 6s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-05-12 17:09:42 UTC
1 similar comment
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build |
✅ Succeeded | 6s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-05-12 17:09:42 UTC
Greptile SummaryAdds a 3-line explanatory comment above the
Confidence Score: 5/5Documentation-only change with no impact on runtime behavior; safe to merge. Every changed file receives the same identical 3-line comment block. No generator settings, migrations, or code paths are modified. The comment text is accurate and consistent with the Prisma 7 / Node 24 setup already reflected in the codebase and project overview doc. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "Update comment" | Re-trigger Greptile |
|
The changes in this PR are now available on npm. Try them out by running Or try it in a new app with |
Had this comment first, but it felt like it was too long ```js // For CJS Cedar apps: // It might feel a little out of place to have .mts files in the codebase, and // especially importing them like we do in `src/lib/db`. // For ESM Cedar apps: // It might feel a little weird to ask Prisma to generate CJS compatible format. // // Setting `moduleFormat = "cjs"` and using `.mts` extensions is however the // only combination that makes Prisma 7, which is ESM-only, work in CJS Cedar // apps while also having the same configuration work for ESM Cedar apps. // // The only reason this works is thanks to Node 24's support for require(esm). // https://www.prisma.io/docs/orm/prisma-schema/overview/generators ``` So I shortened it to what we have now, and then pointing here for more info. This all came out of the discussion on PR #1752

Had this comment first, but it felt like it was too long
So I shortened it to what we have now, and then pointing here for more info.
This all came out of the discussion on PR #1752