feat: self-hosted provider

This commit is contained in:
DarkSky
2023-01-06 17:28:35 +08:00
parent f01c6e12d2
commit 9b278d29d5
3 changed files with 17 additions and 2 deletions
+8
View File
@@ -46,6 +46,10 @@ const nextConfig = {
source: '/api/:path*',
destination: destinationAC,
},
{
source: '/collaboration/:path*',
destination: 'http://localhost:3000/collaboration/:path*',
},
];
} else {
let destinationStandard = 'http://100.77.180.48:11001/api/:path*';
@@ -58,6 +62,10 @@ const nextConfig = {
source: '/api/:path*',
destination: destinationStandard,
},
{
source: '/collaboration/:path*',
destination: 'http://localhost:3000/collaboration/:path*',
},
];
}
},