refactor(api): simplify backend proxy to api and biz paths
This commit is contained in:
@@ -11,8 +11,8 @@ const nextConfig: NextConfig = {
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/backend/:path*',
|
||||
destination: `${backendOrigin}/:path*`,
|
||||
source: '/:namespace(api|biz)/:path*',
|
||||
destination: `${backendOrigin}/:namespace/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user