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;