File tree Expand file tree Collapse file tree
apps/sim/app/api/function/execute Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { createContext , Script } from 'vm'
22import { type NextRequest , NextResponse } from 'next/server'
33import { env , isTruthy } from '@/lib/env'
4- import { MAX_EXECUTION_DURATION } from '@/lib/execution/constants'
54import { executeInE2B } from '@/lib/execution/e2b'
65import { CodeLanguage , DEFAULT_CODE_LANGUAGE , isValidCodeLanguage } from '@/lib/execution/languages'
76import { createLogger } from '@/lib/logs/console/logger'
87import { validateProxyUrl } from '@/lib/security/input-validation'
98import { generateRequestId } from '@/lib/utils'
109export const dynamic = 'force-dynamic'
1110export 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
1415const logger = createLogger ( 'FunctionExecuteAPI' )
1516
You can’t perform that action at this time.
0 commit comments