MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / v2ImportUrl

Function v2ImportUrl

apps/cloud/src/auth/v2-import.ts:36–39  ·  view source on GitHub ↗
(env: V2EdgeEnv)

Source from the content-addressed store, hash-verified

34
35/** The absolute URL of v2's import page, or `null` where v1 has no v2 host. */
36export 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. */

Callers 2

v2-import.test.tsFile · 0.90
v2ImportAnswerFunction · 0.85

Calls 1

v2AppOriginFunction · 0.85

Tested by

no test coverage detected