(env: V2EdgeEnv)
| 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 => { |
| 37 | const origin = v2AppOrigin(env); |
| 38 | return origin === null ? null : new URL(V2_IMPORT_PATH, origin); |
| 39 | }; |
| 40 | |
| 41 | /** v1's plans that cost nothing, as v2's import counts them (v2's |
| 42 | * `freePlans`). Every other plan, including one added later, is paid. */ |
no test coverage detected