fix: update Dockerfile to include pino transport packages
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user