Skip to content

Commit

Permalink
feat: add web analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ho991217 committed Mar 19, 2024
1 parent 63072aa commit d694cec
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata, Viewport } from 'next';
import './globals.css';
import { SpeedInsights } from '@vercel/speed-insights/next';
import { Analytics } from '@vercel/analytics/react';

// export const metadata: Metadata = {
// title: '단페스타 2024',
Expand All @@ -25,6 +26,7 @@ export default function RootLayout({
<>
{children}
<SpeedInsights />
<Analytics />
</>
);
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
Expand Down
25 changes: 25 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3296,6 +3296,23 @@ __metadata:
languageName: node
linkType: hard

"@vercel/analytics@npm:^1.2.2":
version: 1.2.2
resolution: "@vercel/analytics@npm:1.2.2"
dependencies:
server-only: "npm:^0.0.1"
peerDependencies:
next: ">= 13"
react: ^18 || ^19
peerDependenciesMeta:
next:
optional: true
react:
optional: true
checksum: 10c0/82c89846356b370574414aa511d5a341535dcc7ba3b0a5eabfc7644df6d52a7b30253247627382faf4a0cc4192715cea718fe91027f7ba35efba80256064a005
languageName: node
linkType: hard

"@vercel/speed-insights@npm:^1.0.10":
version: 1.0.10
resolution: "@vercel/speed-insights@npm:1.0.10"
Expand Down Expand Up @@ -4384,6 +4401,7 @@ __metadata:
"@types/node": "npm:^20"
"@types/react": "npm:^18"
"@types/react-dom": "npm:^18"
"@vercel/analytics": "npm:^1.2.2"
"@vercel/speed-insights": "npm:^1.0.10"
autoprefixer: "npm:^10.0.1"
class-variance-authority: "npm:^0.7.0"
Expand Down Expand Up @@ -8671,6 +8689,13 @@ __metadata:
languageName: node
linkType: hard

"server-only@npm:^0.0.1":
version: 0.0.1
resolution: "server-only@npm:0.0.1"
checksum: 10c0/4704f0ef85da0be981af6d4ed8e739d39bcfd265b9c246a684060acda5642d0fdc6daffc2308e71e2682c5f508090978802eae0a77623c9b90a49f9ae68048d6
languageName: node
linkType: hard

"set-function-length@npm:^1.2.1":
version: 1.2.1
resolution: "set-function-length@npm:1.2.1"
Expand Down

0 comments on commit d694cec

Please sign in to comment.