Skip to content

Commit

Permalink
Add Vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
crqch committed Aug 30, 2024
1 parent bd2c7eb commit c83c1b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@trpc/client": "^11.0.0-rc.446",
"@trpc/react-query": "^11.0.0-rc.446",
"@trpc/server": "^11.0.0-rc.446",
"@vercel/analytics": "^1.3.1",
"geist": "^1.3.0",
"next": "^14.2.4",
"react": "^18.3.1",
Expand Down
6 changes: 5 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { GeistSans } from "geist/font/sans";
import { type Metadata } from "next";

import { TRPCReactProvider } from "~/trpc/react";
import { Analytics } from "@vercel/analytics/next";
export const metadata: Metadata = {
title: "maze",
description: "Fun little game to solve the maze",
Expand All @@ -16,7 +17,10 @@ export default function RootLayout({
return (
<html lang="en" className={`${GeistSans.variable}`}>
<body>
<TRPCReactProvider>{children}</TRPCReactProvider>
<Analytics />
<TRPCReactProvider>
{children}
</TRPCReactProvider>
</body>
</html>
);
Expand Down

0 comments on commit c83c1b8

Please sign in to comment.