(value: string | undefined)
| 1 | const FRAMEWORK_ROUTE_PREFIX = "/_agent-native"; |
| 2 | |
| 3 | function normalizeBasePath(value: string | undefined): string { |
| 4 | if (!value || value === "/") return ""; |
| 5 | const trimmed = value.trim(); |
| 6 | if (!trimmed || trimmed === "/") return ""; |
| 7 | return `/${trimmed.replace(/^\/+/, "").replace(/\/+$/, "")}`; |
| 8 | } |
| 9 | |
| 10 | function configuredBasePath(): string { |
| 11 | const env = ( |
no outgoing calls
no test coverage detected
searching dependent graphs…