Skip to content

Commit 096197c

Browse files
committed
fix
1 parent 07e2d89 commit 096197c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • apps/sim/app/api/function/execute

apps/sim/app/api/function/execute/route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import { createContext, Script } from 'vm'
22
import { type NextRequest, NextResponse } from 'next/server'
33
import { env, isTruthy } from '@/lib/env'
4-
import { MAX_EXECUTION_DURATION } from '@/lib/execution/constants'
54
import { executeInE2B } from '@/lib/execution/e2b'
65
import { CodeLanguage, DEFAULT_CODE_LANGUAGE, isValidCodeLanguage } from '@/lib/execution/languages'
76
import { createLogger } from '@/lib/logs/console/logger'
87
import { validateProxyUrl } from '@/lib/security/input-validation'
98
import { generateRequestId } from '@/lib/utils'
109
export const dynamic = 'force-dynamic'
1110
export const runtime = 'nodejs'
12-
export const maxDuration = MAX_EXECUTION_DURATION
11+
// Segment config exports must be statically analyzable.
12+
// Mirror MAX_EXECUTION_DURATION (210s) from '@/lib/execution/constants'.
13+
export const maxDuration = 210
1314

1415
const logger = createLogger('FunctionExecuteAPI')
1516

0 commit comments

Comments
 (0)