fix:sample/plate 之前的开发

This commit is contained in:
彭帅
2026-05-28 11:56:17 +08:00
parent fc36bc83e3
commit 8b65de36b8
367 changed files with 57752 additions and 947 deletions

22
frontend/next.config.js Normal file
View 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;