visual-novel-web/next.config.ts

19 lines
389 B
TypeScript
Raw Normal View History

2025-10-28 07:59:26 +00:00
import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
reactStrictMode: false,
eslint: {
ignoreDuringBuilds: true,
},
2025-10-31 02:59:49 +00:00
async rewrites() {
return [
{
source: '/api/:path*', // 前端请求 /api/xxx
destination: 'http://54.223.196.180:8091/:path*', // 实际请求到后端服务器
},
];
},
2025-10-28 07:59:26 +00:00
};
export default nextConfig;