MCPcopy Index your code
hub / github.com/solidjs/solid-start / stripBaseUrl

Function stripBaseUrl

packages/start/src/server/handler.ts:258–261  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

256}
257
258function stripBaseUrl(path: string) {
259 if (import.meta.env.BASE_URL === "/" || import.meta.env.BASE_URL === "") return path;
260 return path.slice(import.meta.env.BASE_URL.length);
261}

Callers 1

createBaseHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected