From a2d4314e144fe0aeab1620c0423cc79d492009d8 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 20 Mar 2026 13:26:27 +0000 Subject: [PATCH] fix: update Dockerfile to include pino transport packages --- apps/web/Dockerfile | 8 ++++++++ apps/web/next.config.js | 6 +----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index c9246517..46de735b 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -114,6 +114,14 @@ COPY --from=builder /app/apps/web/.next/standalone/ ./ COPY --from=builder /app/apps/web/.next/static/ ./apps/web/.next/static/ COPY --from=builder /app/apps/web/public/ ./apps/web/public/ +# Copy pino transport packages not detected by static analysis (loaded via worker threads) +COPY --from=builder /app/node_modules/@axiomhq/pino/ ./node_modules/@axiomhq/pino/ +COPY --from=builder /app/node_modules/@axiomhq/js/ ./node_modules/@axiomhq/js/ +COPY --from=builder /app/node_modules/pino-abstract-transport/ ./node_modules/pino-abstract-transport/ +COPY --from=builder /app/node_modules/thread-stream/ ./node_modules/thread-stream/ +COPY --from=builder /app/node_modules/real-require/ ./node_modules/real-require/ +COPY --from=builder /app/node_modules/split2/ ./node_modules/split2/ + # Copy bootstrap script for runtime env var injection COPY apps/web/bootstrap.cjs ./bootstrap.cjs diff --git a/apps/web/next.config.js b/apps/web/next.config.js index a72b871b..7553c07a 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -28,10 +28,6 @@ const config = { ], }, - /** Include pino transports which are loaded dynamically via worker threads */ - outputFileTracingIncludes: { - "**/*": ["../../node_modules/@axiomhq/pino/**/*"], - }, /** Enables hot reloading for local packages without a build step */ transpilePackages: [ @@ -70,7 +66,7 @@ const config = { }, }, }, - serverExternalPackages: ["pino", "@axiomhq/pino"], + serverExternalPackages: ["pino", "@axiomhq/pino", "pino-abstract-transport", "thread-stream"], experimental: { // instrumentationHook: true,