build(docker): reduce runtime image size

This commit is contained in:
2026-07-09 16:13:38 +08:00
parent ef77709ae8
commit 3c7d6eb301
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import { withSerwist } from "@serwist/turbopack";
*
* 容器化部署模型:`output: "standalone"` + Docker Compose。
* - `pnpm build` 产出 .next/standalone、.next/static、public。
* - Dockerfile 运行 `node server.js`并保留生产依赖以支持 Serwist 运行时生成 SW
* - Dockerfile 运行 `node server.js`仅复制 standalone traced runtime 依赖
*/
const nextConfig: NextConfig = {
output: "standalone",