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
* Adds more Prisma documentation
* Adds more info and a diagram to improve idempotencyKeyTTLs
* Adds more clarity to the run with TTL docs section
* Limits page copy improvements
* Adds schema properties to the alert webhooks
Copy file name to clipboardExpand all lines: docs/config/config-file.mdx
+20-3
Original file line number
Diff line number
Diff line change
@@ -397,10 +397,12 @@ This is usually required if you are using certain ORMs, like TypeORM, that requi
397
397
398
398
If you are using Prisma, you should use the prisma build extension.
399
399
400
-
- Automatically handles copying prisma files to the build directory.
401
-
- Generates the prisma client during the deploy process
400
+
- Automatically handles copying Prisma files to the build directory
401
+
- Generates the Prisma client during the deploy process
402
402
- Optionally will migrate the database during the deploy process
403
-
- Support for TypedSQL and multiple schema files.
403
+
- Support for TypedSQL and multiple schema files
404
+
- You can use `prismaSchemaFolder` to specify just the directory containing your schema file, instead of the full path
405
+
- You can add the extension twice if you have multiple separate schemas in the same project (example below)
404
406
405
407
You can use it for a simple Prisma setup like this:
406
408
@@ -522,6 +524,21 @@ These environment variables are only used during the build process and are not e
522
524
523
525
</Note>
524
526
527
+
If you have multiple separate schemas in the same project you can add the extension multiple times:
528
+
529
+
```ts
530
+
prismaExtension({
531
+
schema: 'prisma/schema/main.prisma',
532
+
version: '6.2.0',
533
+
migrate: false,
534
+
}),
535
+
prismaExtension({
536
+
schema: 'prisma/schema/secondary.prisma',
537
+
version: '6.2.0',
538
+
migrate: false,
539
+
}),
540
+
```
541
+
525
542
#### syncEnvVars
526
543
527
544
The `syncEnvVars` build extension replaces the deprecated `resolveEnvVars` export. Check out our [syncEnvVars documentation](/deploy-environment-variables#sync-env-vars-from-another-service) for more information.
Copy file name to clipboardExpand all lines: docs/limits.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ We limit the size of logs to prevent oversized data potentially causing issues.
114
114
115
115
## Alerts
116
116
117
-
An alert destination is a single email address, Slack channel, or webhook URL that you want to send alerts to. If you're on the Pro and need more than 100 alert destinations, you can request more by contacting us via [email](https://trigger.dev/contact) or [Discord](https://trigger.dev/discord).
117
+
An alert destination is a single email address, Slack channel, or webhook URL that you want to send alerts to. If you're on the Pro plan and need more than the plan limit, you can request more by contacting us via [email](https://trigger.dev/contact) or [Discord](https://trigger.dev/discord).
If the run hasn't started within the specified TTL, it will automatically expire. This is useful for time-sensitive tasks. Note that dev runs automatically have a 10-minute TTL.
136
+
If the run hasn't started within the specified TTL, it will automatically expire, returning the status `Expired`. This is useful for time-sensitive tasks where immediate execution is important. For example, when you queue many runs simultaneously and exceed your concurrency limits, some runs might be delayed - using TTL ensures they only execute if they can start within your specified timeframe.
137
+
138
+
Note that dev runs automatically have a 10-minute TTL. In Staging and Production environments, no TTL is set by default.
0 commit comments