feat: Update @dub/analytics to support domainsConfig.refer (#20495)

* Update `@dub/analytics` to support domainsConfig.refer

* add reverse proxy

---------

Co-authored-by: Amit Sharma <[email protected]>
Co-authored-by: Tushar Bhatt <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-04-03 16:32:58 -04:00
1 parent 0465c639e6
commit 6bc040b7bb
4 files changed
+15 -6

No files matched your search

+4
View File
@@ -317,9 +317,13 @@ export default function Signup({
</>
)}
<DubAnalytics
apiHost="/_proxy/dub"
cookieOptions={{
domain: isENVDev ? undefined : `.${new URL(WEBSITE_URL).hostname}`,
}}
domainsConfig={{
refer: "refer.cal.com",
}}
/>
</>
) : null}