| 121 | }; |
| 122 | |
| 123 | export const getConfigResponse = async ({ |
| 124 | domain, |
| 125 | }: { |
| 126 | domain: string; |
| 127 | }): Promise<DomainConfigResponse> => { |
| 128 | // @ts-ignore |
| 129 | return await fetch( |
| 130 | `https://api.vercel.com/v6/domains/${domain}/config?teamId=${sharedEnvs.TEAM_ID_VERCEL}`, |
| 131 | { |
| 132 | method: 'GET', |
| 133 | headers: { |
| 134 | Authorization: `Bearer ${sharedEnvs.AUTH_BEARER_TOKEN_VERCEL}`, |
| 135 | 'Content-Type': 'application/json', |
| 136 | }, |
| 137 | }, |
| 138 | ).then((res) => res.json()); |
| 139 | }; |
| 140 | |
| 141 | export const verifyDomain = async ( |
| 142 | domain: string, |