From cac100a145a1669fd087317079987ddf5577e6fd Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Sat, 4 Apr 2026 13:06:45 -0700 Subject: [PATCH] Add deps --- apps/sim/next.config.ts | 7 ++++++- apps/sim/package.json | 3 ++- docker/app.Dockerfile | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/sim/next.config.ts b/apps/sim/next.config.ts index e98d268c7b..ab1805753a 100644 --- a/apps/sim/next.config.ts +++ b/apps/sim/next.config.ts @@ -91,7 +91,12 @@ const nextConfig: NextConfig = { ], outputFileTracingIncludes: { '/api/tools/stagehand/*': ['./node_modules/ws/**/*'], - '/*': ['./node_modules/sharp/**/*', './node_modules/@img/**/*', './dist/pptx-worker.cjs'], + '/*': [ + './node_modules/sharp/**/*', + './node_modules/@img/**/*', + './dist/pptx-worker.cjs', + './dist/doc-worker.cjs', + ], }, experimental: { optimizeCss: true, diff --git a/apps/sim/package.json b/apps/sim/package.json index a7423e1704..40c63b850e 100644 --- a/apps/sim/package.json +++ b/apps/sim/package.json @@ -16,8 +16,9 @@ "load:workflow:baseline": "BASE_URL=${BASE_URL:-http://localhost:3000} WARMUP_DURATION=${WARMUP_DURATION:-10} WARMUP_RATE=${WARMUP_RATE:-2} PEAK_RATE=${PEAK_RATE:-8} HOLD_DURATION=${HOLD_DURATION:-20} bunx artillery run scripts/load/workflow-concurrency.yml", "load:workflow:waves": "BASE_URL=${BASE_URL:-http://localhost:3000} WAVE_ONE_DURATION=${WAVE_ONE_DURATION:-10} WAVE_ONE_RATE=${WAVE_ONE_RATE:-6} QUIET_DURATION=${QUIET_DURATION:-5} WAVE_TWO_DURATION=${WAVE_TWO_DURATION:-15} WAVE_TWO_RATE=${WAVE_TWO_RATE:-8} WAVE_THREE_DURATION=${WAVE_THREE_DURATION:-20} WAVE_THREE_RATE=${WAVE_THREE_RATE:-10} bunx artillery run scripts/load/workflow-waves.yml", "load:workflow:isolation": "BASE_URL=${BASE_URL:-http://localhost:3000} ISOLATION_DURATION=${ISOLATION_DURATION:-30} TOTAL_RATE=${TOTAL_RATE:-9} WORKSPACE_A_WEIGHT=${WORKSPACE_A_WEIGHT:-8} WORKSPACE_B_WEIGHT=${WORKSPACE_B_WEIGHT:-1} bunx artillery run scripts/load/workflow-isolation.yml", - "build": "bun run build:pptx-worker && next build", + "build": "bun run build:pptx-worker && bun run build:doc-worker && next build", "build:pptx-worker": "bun build ./lib/execution/pptx-worker.cjs --target=node --format=cjs --outfile ./dist/pptx-worker.cjs", + "build:doc-worker": "bun build ./lib/execution/doc-worker.cjs --target=node --format=cjs --outfile ./dist/doc-worker.cjs", "start": "next start", "worker": "NODE_ENV=production bun run worker/index.ts", "prepare": "cd ../.. && bun husky", diff --git a/docker/app.Dockerfile b/docker/app.Dockerfile index 54791300d5..688ac13ad1 100644 --- a/docker/app.Dockerfile +++ b/docker/app.Dockerfile @@ -117,8 +117,9 @@ COPY --from=deps --chown=nextjs:nodejs /app/node_modules/isolated-vm ./node_modu # Copy the isolated-vm worker script COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/lib/execution/isolated-vm-worker.cjs ./apps/sim/lib/execution/isolated-vm-worker.cjs -# Copy the bundled PPTX worker artifact +# Copy the bundled worker artifacts COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/pptx-worker.cjs ./apps/sim/dist/pptx-worker.cjs +COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/doc-worker.cjs ./apps/sim/dist/doc-worker.cjs # Guardrails setup with pip caching COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/lib/guardrails/requirements.txt ./apps/sim/lib/guardrails/requirements.txt