Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/sim/lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const env = createEnv({
DOCKER_BUILD: z.boolean().optional(), // Flag indicating Docker build environment

// Background Jobs & Scheduling
TRIGGER_PROJECT_ID: z.string().optional(), // Trigger.dev project ID
TRIGGER_SECRET_KEY: z.string().min(1).optional(), // Trigger.dev secret key for background jobs
TRIGGER_DEV_ENABLED: z.boolean().optional(), // Toggle to enable/disable Trigger.dev for async jobs
CRON_SECRET: z.string().optional(), // Secret for authenticating cron job requests
Expand Down
5 changes: 3 additions & 2 deletions apps/sim/trigger.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { defineConfig } from '@trigger.dev/sdk'
import { env } from './lib/env'

export default defineConfig({
project: 'proj_kufttkwzywcydwtccqhx',
project: env.TRIGGER_PROJECT_ID ?? '',
runtime: 'node',
logLevel: 'log',
maxDuration: 180,
maxDuration: 600,
retries: {
enabledInDev: false,
default: {
Expand Down