From 7c3db5cd047fdb31fd3d47dcb33620bc1ebe6f1c Mon Sep 17 00:00:00 2001 From: Matej Stieranka Date: Tue, 24 Jun 2025 17:00:26 +0200 Subject: [PATCH] fix: Include libsql in standalone build --- .npmrc | 1 + Dockerfile | 2 +- next.config.ts | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..5330325 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +public-hoist-pattern[]=*@libsql* diff --git a/Dockerfile b/Dockerfile index 1df7ecb..ccacd03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,7 @@ WORKDIR /app ENV NODE_ENV=production # Uncomment the following line in case you want to disable telemetry during runtime. -# ENV NEXT_TELEMETRY_DISABLED=1 +ENV NEXT_TELEMETRY_DISABLED=1 RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs diff --git a/next.config.ts b/next.config.ts index 398b0d5..8eea06b 100644 --- a/next.config.ts +++ b/next.config.ts @@ -2,6 +2,9 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", + outputFileTracingIncludes: { + "*": ["node_modules/@libsql/**/*"], + }, }; export default nextConfig;