| 12345678910111213141516 |
- /** @type {import('next').NextConfig} */
- const nextConfig = {
- reactStrictMode: true,
- // 反向代理 /api/* 到 FastAPI (localhost:8081)
- async rewrites() {
- return [
- {
- source: '/api/:path*',
- destination: 'http://localhost:8081/api/:path*',
- },
- ];
- },
- };
- module.exports = nextConfig;
|