mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
feat: self-hosted provider
This commit is contained in:
@@ -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*',
|
||||
},
|
||||
];
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user