Files
fad-trade-next/next.config.mjs
砂糖 39f554652d feat: 更新npm配置和国际化支持
- 添加越南语的服务条款和隐私政策文档
- 更新多语言JSON文件中的品牌名称
- 移除未使用的arch页面和依赖项
- 调整next.config.mjs的输出模式配置
- 更新generateStaticParams以包含越南语支持
2025-11-25 12:58:44 +08:00

30 lines
602 B
JavaScript

import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
// 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);