fix:sample/plate 之前的开发
This commit is contained in:
22
frontend/next.config.js
Normal file
22
frontend/next.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
async rewrites() {
|
||||
const apiBaseUrl = process.env.API_BASE_URL || "http://localhost:8081";
|
||||
return [
|
||||
{
|
||||
source: "/auth/:path*",
|
||||
destination: `${apiBaseUrl}/auth/:path*`,
|
||||
},
|
||||
{
|
||||
source: "/brapi/v2/:path*",
|
||||
destination: `${apiBaseUrl}/brapi/v2/:path*`,
|
||||
},
|
||||
{
|
||||
source: "/api/:path*",
|
||||
destination: `${apiBaseUrl}/api/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user