Skip to content

Commit

Permalink
feat: add speed insight
Browse files Browse the repository at this point in the history
  • Loading branch information
y-u-y-a committed Sep 26, 2024
1 parent 4f5ba4c commit 821b19c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 97 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@mantine/hooks": "7.3.2",
"@mantine/notifications": "7.3.2",
"@tabler/icons-react": "3.2.0",
"@vercel/speed-insights": "^1.0.12",
"next": "14.2.13",
"openapi-fetch": "0.12.2",
"react": "^18.2.0",
Expand Down
129 changes: 32 additions & 97 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Header } from "@/components/templates/Header"
import { APP_TITLE } from "@/config/consts"
import { MantineUIProvider } from "@/config/mantine"
import { Box, Stack } from "@mantine/core"
import { SpeedInsights } from "@vercel/speed-insights/next"
import type { Metadata } from "next"

export const metadata: Metadata = {
Expand All @@ -22,6 +23,7 @@ export default function RootLayout({ children }: Props) {
</head>
<body>
<MantineUIProvider>
<SpeedInsights />
<Stack gap={0} mih="100vh">
<Header pos="sticky" top={0} />
<Box style={{ flexGrow: 1 }} children={children} />
Expand Down

0 comments on commit 821b19c

Please sign in to comment.