Skip to content

Commit

Permalink
style: disable vercel stats for now
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Nov 27, 2024
1 parent e43db31 commit 88a824d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/example-nextjs14/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Analytics } from '@vercel/analytics/react';
// import { Analytics } from '@vercel/analytics/react';
import { Roboto } from 'next/font/google';
import { GoogleAnalytics } from '@next/third-parties/google'
import Script from 'next/script'
Expand Down Expand Up @@ -33,7 +33,7 @@ export default async function RootLayout({
</body>

{isProd ? <GoogleAnalytics gaId="G-5N8Y565DXK" /> : null }
{isProd && isVercel ? <Analytics /> : null}
{/* {isProd && isVercel ? <Analytics /> : null} */}
</html>
);
}
Expand Down
4 changes: 1 addition & 3 deletions packages/example-nextjs15/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Analytics } from '@vercel/analytics/react';
import type { Metadata } from 'next';
import { Roboto } from 'next/font/google';

import 'shared/styles.css';

import { isVercel, netifyUrl, vercelUrl } from './domain';
import { netifyUrl, vercelUrl } from './domain';
const roboto = Roboto({
subsets: ['latin'],
weight: '400',
Expand All @@ -24,7 +23,6 @@ export default async function RootLayout({
<link rel="canonical" href={vercelUrl}></link>
<link rel="alternate" href={netifyUrl}></link>
<body className={`${roboto.className}`}>{children}</body>
{isVercel ? <Analytics /> : null}
</html>
);
}
Expand Down

0 comments on commit 88a824d

Please sign in to comment.