(zoneName, headers)
| 66 | json.errors?.some((error) => codes.includes(error.code)); |
| 67 | |
| 68 | async 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 | |
| 75 | async function createPagesProject(account, headers, project, appConfig) { |
| 76 | const { ok, json } = await cf( |