实现国际化(i18n)支持,包括: 1. 新增i18n配置文件和中间件 2. 重构页面和组件以支持多语言 3. 添加中英日三语翻译文件 4. 修改API路由以支持语言参数 5. 更新README文档说明i18n功能 6. 添加语言切换组件 7. 调整布局和路由结构支持多语言路径
15 lines
325 B
TypeScript
15 lines
325 B
TypeScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
images: {
|
|
domains: ['localhost'],
|
|
formats: ['image/webp', 'image/avif'],
|
|
},
|
|
// 优化性能
|
|
compiler: {
|
|
removeConsole: process.env.NODE_ENV === 'production',
|
|
},
|
|
output: 'standalone',
|
|
devIndicators: false,
|
|
};
|
|
|
|
module.exports = nextConfig; |