fix: 确保 libsql 原生 binding 进入 standalone 运行时

- next.config.ts 添加 serverExternalPackages 防止裁剪
- Dockerfile 显式复制 @libsql node_modules 到 runner 镜像
This commit is contained in:
田东生
2026-02-25 18:41:38 +08:00
parent ddcf81d286
commit 115f522056
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
serverExternalPackages: ["@libsql/client"],
};
export default nextConfig;