MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / getDomainResponse

Function getDomainResponse

packages/api/src/utils/domains.ts:105–121  ·  view source on GitHub ↗
(
	domain: string,
)

Source from the content-addressed store, hash-verified

103};
104
105export 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
123export const getConfigResponse = async ({
124 domain,

Callers 1

server.tsFile · 0.90

Calls 1

fetchFunction · 0.85

Tested by

no test coverage detected