| 103 | }; |
| 104 | |
| 105 | export const getDomainResponse = async ( |
| 106 | domain: string, |
| 107 | ): Promise<VercelDomainVerificationResponse> => { |
| 108 | // @ts-ignore |
| 109 | return await fetch( |
| 110 | `https://api.vercel.com/v9/projects/${sharedEnvs.PROJECT_ID_VERCEL}/domains/${domain}?teamId=${sharedEnvs.TEAM_ID_VERCEL}`, |
| 111 | { |
| 112 | method: 'GET', |
| 113 | headers: { |
| 114 | Authorization: `Bearer ${sharedEnvs.AUTH_BEARER_TOKEN_VERCEL}`, |
| 115 | 'Content-Type': 'application/json', |
| 116 | }, |
| 117 | }, |
| 118 | ).then((res) => { |
| 119 | return res.json(); |
| 120 | }); |
| 121 | }; |
| 122 | |
| 123 | export const getConfigResponse = async ({ |
| 124 | domain, |