Files
blog/write-server/next.config.ts
T

26 lines
515 B
TypeScript
Raw Normal View History

2026-06-21 20:42:44 +08:00
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
2026-06-21 21:15:17 +08:00
devIndicators: false,
2026-06-21 20:42:44 +08:00
// 启用 standalone 输出模式(用于 Docker 部署)
output: "standalone",
// 实验性功能
experimental: {
serverActions: {
bodySizeLimit: "10mb",
},
2026-06-24 13:42:36 +08:00
instrumentationHook: true, // 启用 instrumentation,用于自动启动 Bot
2026-06-21 20:42:44 +08:00
},
// 压缩配置
compress: true,
// 环境变量
env: {
BLOG_ROOT: process.env.BLOG_ROOT || "",
},
};
export default nextConfig;