The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fixed remove domains endpoint
Steven Tey69d0612f1d96
diff --git a/lib/domains.ts b/lib/domains.tsindex f7a1e890b3..866873dd21 100644--- a/lib/domains.ts+++ b/lib/domains.ts@@ -19,7 +19,7 @@ export const addDomain = async (domain: string): Promise<CustomResponse> => {export const removeDomain = async (domain: string) => {return await fetch(- `https://api.vercel.com/v9/projects/${process.env.VERCEL_PROJECT_ID}/domains/${domain}?teamId=${process.env.VERCEL_TEAM_ID}`,+ `https://api.vercel.com/v6/domains/${domain}?teamId=${process.env.VERCEL_TEAM_ID}`,{headers: {Authorization: `Bearer ${process.env.AUTH_BEARER_TOKEN}`,