feat:前端
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user