refactor: 重构中间件和路由处理逻辑 fix: 修复音频示例API的错误处理 docs: 更新README和DOCKER_USAGE文档 style: 优化语言切换器样式 chore: 更新.gitignore添加生产环境配置文件
17 lines
383 B
TypeScript
17 lines
383 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: {
|
|
position: 'top-right', // 将挂件移动到右下角
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig; |