import { defineConfig } from '@trigger.dev/sdk/v3'; import { syncEnvVars } from '@trigger.dev/build/extensions/core'; import 'dotenv/config'; export default defineConfig({ project: process.env.TRIGGER_NER_PROJECT_ID || '', runtime: 'node', logLevel: 'log', // The max compute seconds a task is allowed to run. If the task run exceeds this duration, it will be stopped. // You can override this on an individual task. // See https://trigger.dev/docs/runs/max-duration maxDuration: 3600, retries: { enabledInDev: true, default: { maxAttempts: 3, minTimeoutInMs: 1000, maxTimeoutInMs: 10000, factor: 2, randomize: true, }, }, dirs: ['./trigger'], build: { extensions: [ syncEnvVars(async (ctx) => { return [ { name: 'CORENLP_URL_EN', value: process.env.CORENLP_URL_EN || '' }, { name: 'CORENLP_URL_DE', value: process.env.CORENLP_URL_DE || '' }, ]; }), ], }, });