The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
embed-tokens → referrals-token
Steven Tey1d745ec2119e
diff --git a/apps/web/app/api/user/embed-tokens/route.ts b/apps/web/app/api/user/referrals-token/route.tssimilarity index 100%rename from apps/web/app/api/user/embed-tokens/route.tsrename to apps/web/app/api/user/referrals-token/route.tsdiff --git a/apps/web/app/app.dub.co/(dashboard)/account/settings/referrals/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/account/settings/referrals/page-client.tsxindex ed0bb7009c..eb282c39e8 100644--- a/apps/web/app/app.dub.co/(dashboard)/account/settings/referrals/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/account/settings/referrals/page-client.tsx@@ -13,7 +13,7 @@ export function ReferralsPageClient() {const { data: { publicToken } = {}, isLoading } = useSWRImmutable<{publicToken: string;- }>(session && "/api/user/embed-tokens", fetcher, {+ }>(session && "/api/user/referrals-token", fetcher, {keepPreviousData: true,});