MCPcopy Create free account
hub / github.com/continuedev/continue / withBasePath

Function withBasePath

docs-site/lib/basePath.ts:15–18  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

13
14/** Prefix an absolute (`/`-rooted) path with the deploy base path. */
15export function withBasePath(path: string): string {
16 if (!path.startsWith("/")) return path;
17 return `${BASE_PATH}${path}`;
18}

Callers 3

DocsShellFunction · 0.90
DocsSearchFunction · 0.90
index.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected