Skip to content

Commit d4e1347

Browse files
committed
Add prisma generate migration steps to docs
1 parent cb79eae commit d4e1347

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

docs/config/extensions/prismaExtension.mdx

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export default defineConfig({
271271

272272
**Important notes:**
273273

274-
- You **must** run `prisma generate` yourself
274+
- You **must** run `prisma generate` yourself.
275275
- Requires Prisma 6.16.0+ or Prisma 7 beta
276276
- The new `prisma-client` provider generates plain TypeScript (no Rust binaries)
277277
- Requires database adapters (e.g., `@prisma/adapter-pg` for PostgreSQL)
@@ -304,17 +304,6 @@ prismaExtension({
304304
});
305305
```
306306

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-
318307
### Preparing for Prisma 7
319308

320309
If you want to adopt the new Prisma architecture, use modern mode:
@@ -329,6 +318,30 @@ prismaExtension({
329318
});
330319
```
331320

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:
328+
329+
```yaml
330+
steps:
331+
- name: Generate Prisma client
332+
run: npx [email protected] generate
333+
- name: Deploy Trigger.dev
334+
run: npx [email protected] deploy
335+
env:
336+
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
337+
```
338+
339+
#### Trigger.dev Github integration
340+
341+
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:
342+
343+
![Pre-build command](/images/pre-build-command-prisma-generate.png)
344+
332345
---
333346

334347
## Version compatibility matrix
102 KB
Loading

0 commit comments

Comments
 (0)