You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/extensions/prismaExtension.mdx
+25-12Lines changed: 25 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,7 +271,7 @@ export default defineConfig({
271
271
272
272
**Important notes:**
273
273
274
-
- You **must** run `prisma generate` yourself
274
+
- You **must** run `prisma generate` yourself.
275
275
- Requires Prisma 6.16.0+ or Prisma 7 beta
276
276
- The new `prisma-client` provider generates plain TypeScript (no Rust binaries)
277
277
- Requires database adapters (e.g., `@prisma/adapter-pg` for PostgreSQL)
@@ -304,17 +304,6 @@ prismaExtension({
304
304
});
305
305
```
306
306
307
-
### From managing your own Prisma setup
308
-
309
-
If you previously handled Prisma generation yourself and just needed engine binaries, use engine-only mode:
310
-
311
-
```ts
312
-
prismaExtension({
313
-
mode: "engine-only",
314
-
version: "6.19.0", // Match your @prisma/client version
315
-
});
316
-
```
317
-
318
307
### Preparing for Prisma 7
319
308
320
309
If you want to adopt the new Prisma architecture, use modern mode:
@@ -329,6 +318,30 @@ prismaExtension({
329
318
});
330
319
```
331
320
321
+
### Manage your own prisma generate step
322
+
323
+
When using `modern` and `engine-only` modes, you'll need to ensure that you run `prisma generate` yourself before deploying your project.
324
+
325
+
#### Github Actions
326
+
327
+
If you are deploying your project using GitHub Actions, you can add a step to your workflow to run `prisma generate` before deploying your project, for example:
If you are using the [Trigger.dev Github integration](/github-integration), you can configure a pre-build command to run `prisma generate` before deploying your project. Navigate to your project's settings page and configure the pre-build command to run `prisma generate`, for example:
0 commit comments