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

Function postDomain

apps/_scripts/deploy-app.js:191–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 }
190
191 const postDomain = () =>
192 cf(
193 `${CF_API}/accounts/${account}/pages/projects/${project}/domains`,
194 headers,
195 {
196 method: "POST",
197 body: JSON.stringify({ name: customDomain }),
198 },
199 );
200
201 let { ok, json } = await postDomain();
202 if (ok || hasCode(json, 8000007)) {

Callers 1

addPagesDomainFunction · 0.85

Calls 2

stringifyMethod · 0.80
cfFunction · 0.70

Tested by

no test coverage detected