fix: Include libsql in standalone build

This commit is contained in:
Matej Stieranka 2025-06-24 17:00:26 +02:00
parent 9a51dbc339
commit 7c3db5cd04
3 changed files with 5 additions and 1 deletions

1
.npmrc Normal file
View file

@ -0,0 +1 @@
public-hoist-pattern[]=*@libsql*

View file

@ -41,7 +41,7 @@ WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime. # 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 addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs

View file

@ -2,6 +2,9 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: "standalone", output: "standalone",
outputFileTracingIncludes: {
"*": ["node_modules/@libsql/**/*"],
},
}; };
export default nextConfig; export default nextConfig;