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

Function detachPagesDomain

apps/_scripts/deploy-app.js:115–134  ·  view source on GitHub ↗
(account, headers, customDomain)

Source from the content-addressed store, hash-verified

113}
114
115async function detachPagesDomain(account, headers, customDomain) {
116 const { ok, json } = await cf(
117 `${CF_API}/accounts/${account}/pages/projects`,
118 headers,
119 );
120 if (!ok) {
121 throw new Error(`List Pages projects failed: ${JSON.stringify(json)}`);
122 }
123
124 for (const project of json.result || []) {
125 const detached = await detachPagesDomainFromProject(
126 account,
127 headers,
128 project.name,
129 customDomain,
130 );
131
132 if (detached) return;
133 }
134}
135
136async function detachPagesDomainFromProject(
137 account,

Callers 2

addPagesDomainFunction · 0.85
runCutoverFunction · 0.85

Calls 3

stringifyMethod · 0.80
cfFunction · 0.70

Tested by

no test coverage detected