(path: string)
| 14 | |
| 15 | /** a root-relative path as it's served, e.g. /3/llms.txt for /llms.txt */ |
| 16 | export const withBase = (path: string): string => |
| 17 | path.startsWith("/") ? `${basePath}${path}` : path |
| 18 | |
| 19 | /** a served pathname, like location.pathname, as the page url it serves */ |
| 20 | export const withoutBase = (pathname: string): string => |
no outgoing calls
no test coverage detected