fix: 确保 libsql 原生 binding 进入 standalone 运行时
- next.config.ts 添加 serverExternalPackages 防止裁剪 - Dockerfile 显式复制 @libsql node_modules 到 runner 镜像
This commit is contained in:
@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
serverExternalPackages: ["@libsql/client"],
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user