The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add more supported countries
Steven Tey50ad44aa0772
diff --git a/apps/web/app/api/supported-countries/route.ts b/apps/web/app/api/supported-countries/route.tsindex 60e34f3e68..a9fd0f0173 100644--- a/apps/web/app/api/supported-countries/route.ts+++ b/apps/web/app/api/supported-countries/route.ts@@ -2,6 +2,7 @@ import {CONNECT_SUPPORTED_COUNTRIES,COUNTRIES,PAYPAL_SUPPORTED_COUNTRIES,+ STABLECOIN_SUPPORTED_COUNTRIES,} from "@dub/utils";import { NextResponse } from "next/server";@@ -9,7 +10,11 @@ export const dynamic = "force-static";export async function GET() {const supported = [- ...new Set([...CONNECT_SUPPORTED_COUNTRIES, ...PAYPAL_SUPPORTED_COUNTRIES]),+ ...new Set([+ ...STABLECOIN_SUPPORTED_COUNTRIES,+ ...CONNECT_SUPPORTED_COUNTRIES,+ ...PAYPAL_SUPPORTED_COUNTRIES,+ ]),];const sorted = supported.sort((a, b) => COUNTRIES[a].localeCompare(COUNTRIES[b]))