Skip to content

Commit

Permalink
Merge pull request #134 from sadanandpai/vercel-analytics
Browse files Browse the repository at this point in the history
Feat: Vercel analytics
  • Loading branch information
siva-kannan3 committed Jan 6, 2023
2 parents 6910256 + 6394489 commit bde3126
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@mui/material": "^5.6.1",
"@mui/x-date-pickers": "^5.0.0-alpha.2",
"@splidejs/splide": "^4.0.1",
"@vercel/analytics": "^0.1.6",
"color": "^4.2.3",
"dayjs": "^1.11.1",
"export-from-json": "^1.6.0",
Expand Down
14 changes: 9 additions & 5 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import type { AppProps } from 'next/app';
import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles';
import '../styles/globals.css';

import { StyledEngineProvider, ThemeProvider } from '@mui/material/styles';

import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { LocalizationProvider } from '@mui/x-date-pickers';
// eslint-disable-next-line import/no-unresolved
import { Analytics } from '@vercel/analytics/react';
import type { AppProps } from 'next/app';
import { GLOBAL_MUI_THEME } from '../styles/global.theme';

import '../styles/globals.css';
import { LocalizationProvider } from '@mui/x-date-pickers';
import { useEffect } from 'react';

declare global {
Expand All @@ -29,6 +32,7 @@ function MyApp({ Component, pageProps }: AppProps) {
<ThemeProvider theme={GLOBAL_MUI_THEME}>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<Component {...pageProps} />
<Analytics />
</LocalizationProvider>
</ThemeProvider>
</StyledEngineProvider>
Expand Down

1 comment on commit bde3126

@vercel
Copy link

@vercel vercel bot commented on bde3126 Jan 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

resume-builder – ./

e-resume.vercel.app
resume-builder-sadanandpai.vercel.app
resume-builder-git-main-sadanandpai.vercel.app

Please sign in to comment.