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

Function verifyDomain

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

Source from the content-addressed store, hash-verified

139};
140
141export const verifyDomain = async (
142 domain: string,
143): Promise<DomainVerificationResponse> => {
144 // @ts-ignore
145 return await fetch(
146 `https://api.vercel.com/v9/projects/${sharedEnvs.PROJECT_ID_VERCEL}/domains/${domain}/verify?teamId=${sharedEnvs.TEAM_ID_VERCEL}`,
147 {
148 method: 'POST',
149 headers: {
150 Authorization: `Bearer ${sharedEnvs.AUTH_BEARER_TOKEN_VERCEL}`,
151 'Content-Type': 'application/json',
152 },
153 },
154 ).then((res) => res.json());
155};
156
157export const getSubdomain = (name: string, apexName: string) => {
158 if (name === apexName) return null;

Callers 1

server.tsFile · 0.90

Calls 1

fetchFunction · 0.85

Tested by

no test coverage detected