diff --git a/src/app/api/agent/[...segments]/route.ts b/src/app/api/agent/[...segments]/route.ts index 04dabb8..c423ffe 100644 --- a/src/app/api/agent/[...segments]/route.ts +++ b/src/app/api/agent/[...segments]/route.ts @@ -3,12 +3,12 @@ export const dynamic = 'force-dynamic' import type { NextRequest } from 'next/server' import { createUpstreamProxyHandler } from '@lib/apiProxy' -import { getInternalServerServiceBaseUrl } from '@server/serviceConfig' +import { getAccountServiceBaseUrl } from '@server/serviceConfig' const AGENT_PREFIX = '/api/agent' function createHandler() { - const upstreamBaseUrl = getInternalServerServiceBaseUrl() + const upstreamBaseUrl = getAccountServiceBaseUrl() return createUpstreamProxyHandler({ upstreamBaseUrl, upstreamPathPrefix: AGENT_PREFIX,