Skip to content

Commit

Permalink
feat: updating analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Reynadi531 committed Aug 10, 2024
1 parent 1802985 commit 85f6731
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 43 deletions.
35 changes: 21 additions & 14 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
module.exports = {
siteUrl: 'https://reynadi.com',
generateRobotsTxt: true,
exclude: ['/404', '/500', '/_app', '/_document', '/_error'],
robotsTxtOptions: {
policies: [
{
userAgent: '*',
disallow: ['/404', '/500', '/_app', '/_document', '/_error'],
allow: '/',
},
],
},
};

siteUrl: 'https://reynadi.com',
generateRobotsTxt: true,
exclude: ['/404', '/500', '/_app', '/_document', '/_error'],
robotsTxtOptions: {
policies: [
{
userAgent: '*',
disallow: [
'/404',
'/500',
'/_app',
'/_document',
'/_error',
'/cgi-bin',
'/cgi-bin/',
],
allow: '/',
},
],
},
};
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@t3-oss/env-nextjs": "^0.11.0",
"@tabler/icons-react": "^3.7.0",
"@tailwindcss/typography": "^0.5.13",
"@vercel/analytics": "^1.3.1",
"clsx": "^2.1.1",
"contentlayer": "^0.3.4",
"date-fns": "^3.6.0",
Expand Down
26 changes: 0 additions & 26 deletions pnpm-lock.yaml

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

9 changes: 7 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Analytics } from '@vercel/analytics/react';
import type { Metadata } from 'next';
import Script from 'next/script';

import './globals.css';

Expand Down Expand Up @@ -40,7 +40,6 @@ export default function RootLayout({
}>) {
return (
<>
<Analytics />
<html
lang='en'
className={cn(
Expand All @@ -50,6 +49,12 @@ export default function RootLayout({
)}
>
<body>{children}</body>
<Script
defer
src='https://analytics.reynadi.com/script.js'
strategy='beforeInteractive'
data-website-id='161288d3-c258-4064-8e33-97a87b56248a'
/>
</html>
</>
);
Expand Down

0 comments on commit 85f6731

Please sign in to comment.