Files
triggerdotdev--trigger.dev/references/nextjs-realtime/trigger.config.ts
T
Matt Aitken 5798024a5b Require max duration in trigger.config. Validate TRIGGER_ACCESS_TOKEN is a PAT. (#1620)
* Show a good error if TRIGGER_ACCESS_TOKEN isn’t a PAT

* Require maxDuration in trigger.config from now on

* Changeset

* Update the trigger.config templates copy, and set the default to 1hr

* Set the maxDuration in the trigger.config files inside the repo

* Fixed the e2e tests by setting the package to 0.0.0-prerelease-20250116195421
2025-01-17 11:32:55 +00:00

16 lines
415 B
TypeScript

import { defineConfig } from "@trigger.dev/sdk/v3";
import { rscExtension } from "@trigger.dev/rsc";
import { AISDKExporter } from "langsmith/vercel";
export default defineConfig({
project: "proj_bzhdaqhlymtuhlrcgbqy",
dirs: ["./src/trigger"],
telemetry: {
exporters: [new AISDKExporter()],
},
build: {
extensions: [rscExtension({ reactDomEnvironment: "worker" })],
},
maxDuration: 3600,
});