Skip to content

Commit bf40598

Browse files
committed
feat: add Vercel Analytics integration in layout and update package.json
1 parent 8241a11 commit bf40598

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

apps/spectator/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@bprogress/next": "^3.2.12",
2020
"@hcc/api-base": "workspace:*",
2121
"@hcc/icons": "workspace:*",
22+
"@vercel/analytics": "^1.5.0",
2223
"next": "^15.4.5",
2324
"react": "^19.1.1",
2425
"react-dom": "^19.1.1"

apps/spectator/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Analytics } from '@vercel/analytics/next';
12
import type { Metadata } from 'next';
23
import type { PropsWithChildren } from 'react';
34
import { Layout } from '~/components/layout';
@@ -17,6 +18,7 @@ const RootLayout = ({ children }: PropsWithChildren) => {
1718
<Provider>
1819
<Layout>{children}</Layout>
1920
</Provider>
21+
<Analytics />
2022
</body>
2123
</html>
2224
);

pnpm-lock.yaml

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)