Added Vercel Analytics
This commit is contained in:
parent
0e58ec6d11
commit
44bd7f49d8
3 changed files with 34 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import { GlobalStyle } from "@/styles/globalStyle"
|
|||
import StyledComponentsRegistry from "@/lib/registry"
|
||||
import { ReCaptchaProvider } from "next-recaptcha-v3"
|
||||
import { K2D } from "next/font/google"
|
||||
import { Analytics } from "@vercel/analytics/react"
|
||||
|
||||
const k2d = K2D({
|
||||
weight: ["400", "500", "600"],
|
||||
|
|
@ -53,7 +54,10 @@ export default function RootLayout({
|
|||
<ReCaptchaProvider>
|
||||
<StyledComponentsRegistry>
|
||||
<GlobalStyle />
|
||||
<body>{children}</body>
|
||||
<body>
|
||||
<Analytics />
|
||||
{children}
|
||||
</body>
|
||||
</StyledComponentsRegistry>
|
||||
</ReCaptchaProvider>
|
||||
</html>
|
||||
|
|
|
|||
28
package-lock.json
generated
28
package-lock.json
generated
|
|
@ -8,6 +8,7 @@
|
|||
"name": "hangerthem-web",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@vercel/analytics": "^1.3.1",
|
||||
"canvas-confetti": "^1.9.3",
|
||||
"express-rate-limit": "^7.4.0",
|
||||
"next": "14.1.0",
|
||||
|
|
@ -622,6 +623,27 @@
|
|||
"integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@vercel/analytics": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.3.1.tgz",
|
||||
"integrity": "sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==",
|
||||
"license": "MPL-2.0",
|
||||
"dependencies": {
|
||||
"server-only": "^0.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"next": ">= 13",
|
||||
"react": "^18 || ^19"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"next": {
|
||||
"optional": true
|
||||
},
|
||||
"react": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/accepts": {
|
||||
"version": "1.3.8",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
||||
|
|
@ -4101,6 +4123,12 @@
|
|||
"node": ">= 0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/server-only": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",
|
||||
"integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/set-function-length": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz",
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vercel/analytics": "^1.3.1",
|
||||
"canvas-confetti": "^1.9.3",
|
||||
"express-rate-limit": "^7.4.0",
|
||||
"next": "14.1.0",
|
||||
|
|
|
|||
Loading…
Reference in a new issue