pathPrefix use hardcode

Signed-off-by: amintong <amintong@tencent.com>
This commit is contained in:
amintong
2025-08-11 10:35:15 +08:00
parent 0810cd8539
commit 1c9d93a2b5
+1 -2
View File
@@ -292,8 +292,7 @@ export async function createRouter(
logger: options.logger,
};
const baseUrl = await options.discovery.getBaseUrl('proxy');
const { pathname: pathPrefix } = new URL(baseUrl);
const pathPrefix = '/api/proxy';
const proxyConfig: ProxyConfig = {
...(options.additionalEndpoints ?? {}),