()
| 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)) { |
no test coverage detected