(env: V2EdgeEnv)
| 27 | * of v2's sign-up page, the same host the edge sends v2 dashboard links to. |
| 28 | */ |
| 29 | export const v2AppOrigin = (env: V2EdgeEnv): URL | null => { |
| 30 | const edge = parseV2Edge(env); |
| 31 | if (edge === null || typeof edge === "string") return null; |
| 32 | return new URL(edge.signUpUrl.origin); |
| 33 | }; |
| 34 | |
| 35 | /** The absolute URL of v2's import page, or `null` where v1 has no v2 host. */ |
| 36 | export const v2ImportUrl = (env: V2EdgeEnv): URL | null => { |
no test coverage detected