Skip to content

Commit

Permalink
Merge pull request #38 from firehawk89/add-vercel-analytics
Browse files Browse the repository at this point in the history
Add Vercel Analytics
  • Loading branch information
firehawk89 authored Feb 14, 2024
2 parents b2c11c4 + a05999a commit 5f24401
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dependencies": {
"@emailjs/nodejs": "^2.2.0",
"@hookform/resolvers": "^3.3.4",
"@vercel/analytics": "^1.1.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"gray-matter": "^4.0.3",
Expand Down
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Footer from '@/components/footer'
import Header from '@/components/header/header'
import Providers from '@/store/providers'
import { SITE_URL, cn } from '@/utils'
import { Analytics } from '@vercel/analytics/react'

import { raleway } from './fonts'
import './globals.css'
Expand All @@ -17,7 +18,7 @@ export const metadata: Metadata = {
alt: 'Anton Bochkovskyi - Front-End Developer',
height: 630,
type: 'image/png',
url: `${SITE_URL}/api/og?title=Anton%20Bochkovskyi%20-%20Front-End%20Developer`,
url: `${SITE_URL}/api/og?title=Anton%20Bochkovskyi&description=Front-End%20Developer`,
width: 1200,
},
},
Expand All @@ -40,6 +41,7 @@ export default function RootLayout({
<main className="flex-shrink flex-grow basis-0">{children}</main>
<Footer />
</Providers>
<Analytics />
</body>
</html>
)
Expand Down

0 comments on commit 5f24401

Please sign in to comment.