Skip to content

Commit

Permalink
hotfix: added Vercel Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
traviskuhl committed May 24, 2024
1 parent b7bb65f commit 2f53b5b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@types/react-highlight-words": "^0.16.7",
"@vercel/analytics": "^1.3.1",
"autoprefixer": "^10.4.19",
"clsx": "^2.1.1",
"fast-glob": "^3.3.2",
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {Inter} from 'next/font/google';
import localFont from 'next/font/local';
import {cookies} from 'next/headers';
import clsx from 'clsx';
import {Analytics} from '@vercel/analytics/react';

import {Providers} from '@/app/providers';
import {Layout} from '@/components/Layout';
Expand Down Expand Up @@ -49,6 +50,7 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
<Providers>
<Layout>{children}</Layout>
</Providers>
<Analytics />
</body>
</html>
);
Expand Down
1 change: 1 addition & 0 deletions apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@elwood/react": "workspace:*",
"@elwood/ui": "workspace:*",
"@supabase/ssr": "^0.3.0",
"@vercel/analytics": "^1.3.1",
"autoprefixer": "^10.4.19",
"clsx": "^2.1.1",
"geist": "^1.3.0",
Expand Down
2 changes: 2 additions & 0 deletions apps/www/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type {PropsWithChildren} from 'react';
import {type Metadata} from 'next';
import {cookies} from 'next/headers';
import {ElwoodThemeProvider} from '@elwood/ui';
import {Analytics} from '@vercel/analytics/react';

import './global.css';
import '@elwood/ui/style.css';
Expand All @@ -22,6 +23,7 @@ export default function RootLayout(props: PropsWithChildren): JSX.Element {
data-color-mode={themeClassName}
data-color-server-theme={theme}>
<ElwoodThemeProvider>{props.children}</ElwoodThemeProvider>
<Analytics />
</body>
</html>
);
Expand Down
29 changes: 29 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 2f53b5b

Please sign in to comment.