19 lines
389 B
TypeScript
19 lines
389 B
TypeScript
import type { NextConfig } from 'next';
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: false,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*', // 前端请求 /api/xxx
|
|
destination: 'http://54.223.196.180:8091/:path*', // 实际请求到后端服务器
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|