From 81e6c02fb4b4be4f22cd4a9e3b704070a067e49f Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Tue, 23 Dec 2025 01:00:30 +0900 Subject: [PATCH] fix: include instrumentation.ts in standalone build for Langfuse Add outputFileTracingIncludes to next.config.ts to ensure instrumentation.ts is included in standalone builds (required for App Runner deployment) --- next.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.ts b/next.config.ts index e10ab30..69f0a74 100644 --- a/next.config.ts +++ b/next.config.ts @@ -10,6 +10,10 @@ const nextConfig: NextConfig = { env: { APP_VERSION: packageJson.version, }, + // Include instrumentation.ts in standalone build for Langfuse telemetry + outputFileTracingIncludes: { + "*": ["./instrumentation.ts"], + }, } export default nextConfig