mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
37 lines
888 B
TypeScript
37 lines
888 B
TypeScript
import { additionalFiles, additionalPackages } from '@trigger.dev/build/extensions/core'
|
|
import { defineConfig } from '@trigger.dev/sdk'
|
|
import { env } from './lib/core/config/env'
|
|
|
|
export default defineConfig({
|
|
project: env.TRIGGER_PROJECT_ID!,
|
|
runtime: 'node-22',
|
|
logLevel: 'log',
|
|
maxDuration: 5400,
|
|
retries: {
|
|
enabledInDev: false,
|
|
default: {
|
|
maxAttempts: 1,
|
|
},
|
|
},
|
|
dirs: ['./background'],
|
|
build: {
|
|
external: ['isolated-vm', 'pptxgenjs'],
|
|
extensions: [
|
|
additionalFiles({
|
|
files: ['./lib/execution/isolated-vm-worker.cjs', './lib/execution/pptx-worker.cjs'],
|
|
}),
|
|
additionalPackages({
|
|
packages: [
|
|
'unpdf',
|
|
'pdf-lib',
|
|
'isolated-vm',
|
|
'pptxgenjs',
|
|
'react-dom',
|
|
'@react-email/components',
|
|
'@react-email/render',
|
|
],
|
|
}),
|
|
],
|
|
},
|
|
})
|