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

Function runCutover

apps/_scripts/deploy-app.js:373–388  ·  view source on GitHub ↗
(appName)

Source from the content-addressed store, hash-verified

371}
372
373async function runCutover(appName) {
374 const { publicDomain, originDomain } = appContext(appName);
375 console.log(`Public cutover: ${publicDomain} -> ${originDomain}`);
376
377 const oldHeaders = headersFor(OLD_TOKEN);
378 await detachPagesDomain(OLD_ACCOUNT, oldHeaders, publicDomain);
379 await deleteCname(OLD_POLLINATIONS_ZONE_ID, oldHeaders, publicDomain);
380 await attachWorkerDomain(
381 OLD_ACCOUNT,
382 oldHeaders,
383 publicDomain,
384 OLD_POLLINATIONS_ZONE_ID,
385 );
386
387 console.log(`Public routing ready: https://${publicDomain}`);
388}
389
390const {
391 mycToken: MYC_TOKEN,

Callers

nothing calls this directly

Calls 6

appContextFunction · 0.85
headersForFunction · 0.85
detachPagesDomainFunction · 0.85
deleteCnameFunction · 0.85
attachWorkerDomainFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected