Files
fad-trade-next/next.config.mjs
砂糖 450337a019 refactor(about): 重构关于页面路由为静态路径
将关于页面的查询参数路由改为静态路径结构,如/about/company
更新i18n消息中的链接路径
添加新的[section]页面处理逻辑
优化静态生成参数和错误处理
2025-12-11 09:10:41 +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);