Skip to content

Commit f52bc74

Browse files
author
waleed
committed
add trigger proj id
1 parent a23f74b commit f52bc74

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/sim/lib/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const env = createEnv({
103103
DOCKER_BUILD: z.boolean().optional(), // Flag indicating Docker build environment
104104

105105
// Background Jobs & Scheduling
106+
TRIGGER_PROJECT_ID: z.string().optional(), // Trigger.dev project ID
106107
TRIGGER_SECRET_KEY: z.string().min(1).optional(), // Trigger.dev secret key for background jobs
107108
TRIGGER_DEV_ENABLED: z.boolean().optional(), // Toggle to enable/disable Trigger.dev for async jobs
108109
CRON_SECRET: z.string().optional(), // Secret for authenticating cron job requests

apps/sim/trigger.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { defineConfig } from '@trigger.dev/sdk'
2+
import { env } from './lib/env'
23

34
export default defineConfig({
4-
project: 'proj_kufttkwzywcydwtccqhx',
5+
project: env.TRIGGER_PROJECT_ID ?? '',
56
runtime: 'node',
67
logLevel: 'log',
78
maxDuration: 600,

0 commit comments

Comments
 (0)