book-management-frontend/next.config.mjs
2025-05-22 20:42:10 +08:00

25 lines
455 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://localhost:8080/:path*', // 代理到后端服务器
basePath: false,
},
];
},
};
export default nextConfig;