MCPcopy Index your code
hub / github.com/BuilderIO/agent-native / configuredBasePath

Function configuredBasePath

packages/core/src/client/api-path.ts:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10function configuredBasePath(): string {
11 const env = (
12 import.meta as unknown as {
13 env?: Record<string, string | boolean | undefined>;
14 }
15 ).env;
16 const value = env?.VITE_APP_BASE_PATH ?? env?.APP_BASE_PATH ?? env?.BASE_URL;
17 return typeof value === "string" ? normalizeBasePath(value) : "";
18}
19
20function pathDerivedBasePath(): string {
21 if (typeof window === "undefined") return "";

Callers 1

appBasePathFunction · 0.85

Calls 1

normalizeBasePathFunction · 0.70

Tested by

no test coverage detected