Files
blog/write-server/next.config.ts
T
2026-06-24 13:42:36 +08:00

27 lines
515 B
TypeScript

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