2026-01-09 11:58:08 +08:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
|
const nextConfig = {
|
|
|
|
|
typescript: {
|
|
|
|
|
ignoreBuildErrors: true,
|
|
|
|
|
},
|
|
|
|
|
images: {
|
|
|
|
|
unoptimized: true,
|
|
|
|
|
},
|
2026-01-14 12:50:00 +08:00
|
|
|
output: 'standalone',
|
2026-01-21 15:49:12 +08:00
|
|
|
// 抑制开发环境下的错误遮罩
|
|
|
|
|
devIndicators: {
|
|
|
|
|
buildActivity: false,
|
|
|
|
|
appIsrStatus: false,
|
|
|
|
|
},
|
2026-02-20 18:50:16 +08:00
|
|
|
async headers() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
source: '/api/:path*',
|
|
|
|
|
headers: [
|
|
|
|
|
{ key: 'Access-Control-Allow-Methods', value: 'GET,POST,PUT,DELETE,OPTIONS' },
|
|
|
|
|
{ key: 'Access-Control-Allow-Headers', value: 'Content-Type,Authorization' },
|
|
|
|
|
{ key: 'Access-Control-Allow-Credentials', value: 'true' },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-01-09 11:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default nextConfig
|