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

26 lines
432 B
TypeScript

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