Skip to content

Commit 8c09e19

Browse files
committed
Add deps
1 parent feb1c88 commit 8c09e19

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

apps/sim/next.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ const nextConfig: NextConfig = {
9191
],
9292
outputFileTracingIncludes: {
9393
'/api/tools/stagehand/*': ['./node_modules/ws/**/*'],
94-
'/*': ['./node_modules/sharp/**/*', './node_modules/@img/**/*', './dist/pptx-worker.cjs'],
94+
'/*': [
95+
'./node_modules/sharp/**/*',
96+
'./node_modules/@img/**/*',
97+
'./dist/pptx-worker.cjs',
98+
'./dist/doc-worker.cjs',
99+
],
95100
},
96101
experimental: {
97102
optimizeCss: true,

apps/sim/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"dev:webpack": "next dev --webpack",
1313
"dev:sockets": "bun run socket/index.ts",
1414
"dev:full": "bunx concurrently -n \"App,Realtime\" -c \"cyan,magenta\" \"bun run dev\" \"bun run dev:sockets\"",
15-
"build": "bun run build:pptx-worker && next build",
15+
"build": "bun run build:pptx-worker && bun run build:doc-worker && next build",
1616
"build:pptx-worker": "bun build ./lib/execution/pptx-worker.cjs --target=node --format=cjs --outfile ./dist/pptx-worker.cjs",
17+
"build:doc-worker": "bun build ./lib/execution/doc-worker.cjs --target=node --format=cjs --outfile ./dist/doc-worker.cjs",
1718
"start": "next start",
1819
"prepare": "cd ../.. && bun husky",
1920
"test": "vitest run",

docker/app.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ COPY --from=deps --chown=nextjs:nodejs /app/node_modules/isolated-vm ./node_modu
116116
# Copy the isolated-vm worker script
117117
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/lib/execution/isolated-vm-worker.cjs ./apps/sim/lib/execution/isolated-vm-worker.cjs
118118

119-
# Copy the bundled PPTX worker artifact
119+
# Copy the bundled worker artifacts
120120
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/pptx-worker.cjs ./apps/sim/dist/pptx-worker.cjs
121+
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/doc-worker.cjs ./apps/sim/dist/doc-worker.cjs
121122

122123
# Guardrails setup with pip caching
123124
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/lib/guardrails/requirements.txt ./apps/sim/lib/guardrails/requirements.txt

0 commit comments

Comments
 (0)