Skip to content

Commit

Permalink
feat: disable analytics in non-PROD
Browse files Browse the repository at this point in the history
  • Loading branch information
mwskwong committed Feb 22, 2024
1 parent 8780b64 commit 0cc0b70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const RootLayout: FC<PropsWithChildren> = ({ children }) => (
<html lang="en" suppressHydrationWarning>
<body>
<Providers>{children}</Providers>
<Analytics />
<Analytics
mode={
process.env.VERCEL_ENV === 'production' ? 'production' : 'development'
}
/>
<SpeedInsights />
</body>
</html>
Expand Down

0 comments on commit 0cc0b70

Please sign in to comment.