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

Function getConfigResponse

packages/api/src/utils/domains.ts:123–139  ·  view source on GitHub ↗
({
	domain,
}: {
	domain: string;
})

Source from the content-addressed store, hash-verified

121};
122
123export 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
141export const verifyDomain = async (
142 domain: string,

Callers 1

server.tsFile · 0.90

Calls 1

fetchFunction · 0.85

Tested by

no test coverage detected