()
| 8 | } |
| 9 | |
| 10 | function 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 | |
| 20 | function pathDerivedBasePath(): string { |
| 21 | if (typeof window === "undefined") return ""; |
no test coverage detected