MCPcopy Create free account
hub / github.com/pollinations/pollinations / resolveZoneId

Function resolveZoneId

apps/_scripts/deploy-app.js:68–73  ·  view source on GitHub ↗
(zoneName, headers)

Source from the content-addressed store, hash-verified

66 json.errors?.some((error) => codes.includes(error.code));
67
68async function resolveZoneId(zoneName, headers) {
69 const { json } = await cf(`${CF_API}/zones?name=${zoneName}`, headers);
70 const zone = json.result?.[0];
71 if (!zone) throw new Error(`Zone not found: ${zoneName}`);
72 return zone.id;
73}
74
75async function createPagesProject(account, headers, project, appConfig) {
76 const { ok, json } = await cf(

Callers 1

runOriginFunction · 0.85

Calls 1

cfFunction · 0.70

Tested by

no test coverage detected