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

Function getPagesProject

apps/_scripts/deploy-app.js:102–113  ·  view source on GitHub ↗
(account, headers, project)

Source from the content-addressed store, hash-verified

100}
101
102async function getPagesProject(account, headers, project) {
103 const { ok, json } = await cf(
104 `${CF_API}/accounts/${account}/pages/projects/${project}`,
105 headers,
106 );
107 if (!ok) {
108 throw new Error(
109 `Get project ${project} failed: ${JSON.stringify(json)}`,
110 );
111 }
112 return json.result;
113}
114
115async function detachPagesDomain(account, headers, customDomain) {
116 const { ok, json } = await cf(

Callers 1

runOriginFunction · 0.85

Calls 2

stringifyMethod · 0.80
cfFunction · 0.70

Tested by

no test coverage detected