Skip to main content

Function: getApiBaseUrl()

getApiBaseUrl(): string

Defined in: web/lib/api/client.ts:104

Get the API base URL based on environment.

Returns

string

Remarks

In tunnel mode, we use the current origin so requests go through Next.js rewrites (which proxy to the backend). This avoids CORS issues when the ngrok tunnel URL differs from localhost.