Files
sage-home/next.config.mjs
砂糖 99ce2b7fb8 feat: 更新网站配置和内容,优化国际化设置
refactor: 重构产线页面和路由,移除无用代码
style: 调整内容格式和样式,统一中英文标点
docs: 更新产品描述和元数据,完善多语言支持
2026-01-26 16:22:07 +08:00

31 lines
622 B
JavaScript

import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
// output: "standalone",
images: {
remotePatterns: [
...(process.env.R2_PUBLIC_URL
? [
{
hostname: process.env.R2_PUBLIC_URL.replace("https://", ""),
},
]
: []),
],
},
compiler: {
removeConsole:
process.env.NODE_ENV === "production"
? {
exclude: ["error"],
}
: false,
},
};
export default withNextIntl(nextConfig);