📈 Add vercel speed insights

This commit is contained in:
LittleSheep 2025-01-04 18:40:16 +08:00
parent c747f4548e
commit 423b3dac05
3 changed files with 7 additions and 1 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -18,6 +18,7 @@
"@mui/material-nextjs": "^6.3.1",
"@mui/x-charts": "^7.23.2",
"@tailwindcss/typography": "^0.5.15",
"@vercel/speed-insights": "^1.1.0",
"animate.css": "^4.1.1",
"axios": "^1.7.9",
"axios-case-converter": "^1.1.1",
@ -44,5 +45,8 @@
"eslint": "^9",
"eslint-config-next": "15.1.3",
"@eslint/eslintrc": "^3"
}
},
"trustedDependencies": [
"@vercel/speed-insights"
]
}

View File

@ -4,6 +4,7 @@ import {
DocumentHeadTagsProps,
documentGetInitialProps,
} from '@mui/material-nextjs/v15-pagesRouter'
import { SpeedInsights } from '@vercel/speed-insights/next'
import { Html, Head, Main, NextScript, DocumentContext, DocumentProps } from 'next/document'
export default function Document(props: DocumentProps & DocumentHeadTagsProps) {
@ -16,6 +17,7 @@ export default function Document(props: DocumentProps & DocumentHeadTagsProps) {
<body className="antialiased">
<Main />
<NextScript />
<SpeedInsights />
</body>
</Html>
</AppCacheProvider>