Skip to content

Commit

Permalink
Merge pull request #162 from UTDNebula/develop
Browse files Browse the repository at this point in the history
Speed Insights + Merge develop into main
  • Loading branch information
AbhiramTadepalli authored Aug 21, 2024
2 parents cbd5cc3 + b941db0 commit 1da3161
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
41 changes: 38 additions & 3 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 @@ -25,6 +25,7 @@
"@mui/icons-material": "^5.4.4",
"@mui/material": "^5.4.2",
"@vercel/analytics": "^1.0.0",
"@vercel/speed-insights": "^1.0.12",
"apexcharts": "^3.33.2",
"autoprefixer": "^10.4.2",
"autosuggest-highlight": "^3.3.4",
Expand Down
5 changes: 5 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import GitHub from '@mui/icons-material/GitHub';
import { Card, IconButton, Tooltip, useMediaQuery } from '@mui/material';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import { Analytics } from '@vercel/analytics/react';
import { SpeedInsights } from '@vercel/speed-insights/react';
import type { AppProps } from 'next/app';
import { Inter } from 'next/font/google';
import localFont from 'next/font/local';
import Head from 'next/head';
import { useRouter } from 'next/router';
import React from 'react';

const inter = Inter({
Expand Down Expand Up @@ -92,6 +94,8 @@ function MyApp({ Component, pageProps }: AppProps) {
},
});

const router = useRouter();

return (
<>
<Head>
Expand Down Expand Up @@ -122,6 +126,7 @@ function MyApp({ Component, pageProps }: AppProps) {
</main>
</ThemeProvider>
<Analytics />
<SpeedInsights route={router.pathname} />
{showGitInfo ? (
<>
<Card
Expand Down

0 comments on commit 1da3161

Please sign in to comment.