| 1 | export interface InternalUrl { |
| 2 | /** @default "http://localhost:3000" */ |
| 3 | origin: string |
| 4 | /** @default "localhost:3000" */ |
| 5 | host: string |
| 6 | /** @default "/api/auth" */ |
| 7 | path: string |
| 8 | /** @default "http://localhost:3000/api/auth" */ |
| 9 | base: string |
| 10 | /** @default "http://localhost:3000/api/auth" */ |
| 11 | toString: () => string |
| 12 | } |
| 13 | |
| 14 | /** Returns an `URL` like object to make requests/redirects from server-side */ |
| 15 | export default function parseUrl(url?: string): InternalUrl { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…