feat:前端

This commit is contained in:
2026-09-14 11:54:20 +08:00
parent 86b13c6484
commit e2e1d73b3d
46 changed files with 4477 additions and 128 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {};
const apiTarget = process.env.BACKEND_API_ORIGIN ?? "http://127.0.0.1:8000";
nextConfig.rewrites = async () => [
{
source: "/backend/:path*",
destination: `${apiTarget}/api/:path*`,
},
];
export default nextConfig;