MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / getIFrameUrl

Function getIFrameUrl

packages/entrypoint/scripts/build.js:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const { copySync, readFileSync, writeFileSync, rmSync } = require("fs-extra");
5
6function getIFrameUrl() {
7 const iframeTarget = process.env.DETH_IFRAME_URL;
8 const isCI = process.env.CI === "true";
9
10 if (!iframeTarget && isCI) {
11 throw new Error("Missing DETH_IFRAME_URL environment variable");
12 }
13 return iframeTarget ?? "https://localhost:5001";
14}
15
16const iframeTarget = getIFrameUrl();
17

Callers 1

build.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected