Skip to content

Commit

Permalink
feat: ✨ add amplitude domain proxy (#4024)
Browse files Browse the repository at this point in the history
* feat: ✨ add amplitude domain proxy

* chore: 🔧 move amplitude server url to env config
  • Loading branch information
DavideSegullo authored Dec 19, 2024
1 parent 4d338e4 commit 7b03c95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/web/hooks/use-amplitude-analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export function useAmplitudeAnalytics({
useEffect(() => {
if (init) {
if (process.env.NEXT_PUBLIC_AMPLITUDE_API_KEY !== undefined) {
amplitudeInit(process.env.NEXT_PUBLIC_AMPLITUDE_API_KEY);
amplitudeInit(process.env.NEXT_PUBLIC_AMPLITUDE_API_KEY, undefined, {
serverUrl: process.env.NEXT_PUBLIC_AMPLITUDE_SERVER_URL,
});
}
}

Expand Down

0 comments on commit 7b03c95

Please sign in to comment.