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

Function v2AppOrigin

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

Source from the content-addressed store, hash-verified

27 * of v2's sign-up page, the same host the edge sends v2 dashboard links to.
28 */
29export 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. */
36export const v2ImportUrl = (env: V2EdgeEnv): URL | null => {

Callers 2

v2ImportUrlFunction · 0.85
v2ImportAnswerFunction · 0.85

Calls 1

parseV2EdgeFunction · 0.90

Tested by

no test coverage detected