123456789101112131415 |
- import type { NextConfig } from "next";
- const nextConfig: NextConfig = {
- /* config options here */
- async rewrites() {
- return [
- {
- source: '/api/:path*',
- destination: 'http://localhost:8000/api/:path*', // 代理到后端API服务器
- },
- ]
- },
- };
- export default nextConfig;
|