Skip to content

Commit

Permalink
chore(frontend): Add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
wottpal committed Dec 12, 2023
1 parent 257a900 commit f9338a7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tooltip": "^1.0.7",
"@scio-labs/use-inkathon": "^0.6.2",
"@vercel/analytics": "^1.1.1",
"autoprefixer": "^10.4.16",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Metadata, Viewport } from 'next'
import { PropsWithChildren } from 'react'

import { Analytics } from '@vercel/analytics/react'
import { GeistMono } from 'geist/font/mono'
import { GeistSans } from 'geist/font/sans'

Expand Down Expand Up @@ -50,6 +51,8 @@ export default function RootLayout({ children }: PropsWithChildren) {
<TooltipProvider>{children}</TooltipProvider>
<ToastConfig />
</ClientProviders>

{!!env.isProduction && <Analytics />}
</body>
</html>
)
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit f9338a7

@vercel
Copy link

@vercel vercel bot commented on f9338a7 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.