Skip to content

Commit 110556f

Browse files
committed
fix: add speed insights
1 parent faa7d7f commit 110556f

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

package-lock.json

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@sanity/image-url": "^1.0.1",
3131
"@segment/snippet": "^4.15.3",
3232
"@tailwindcss/forms": "^0.5.3",
33+
"@vercel/speed-insights": "^1.0.9",
3334
"classnames": "^2.3.2",
3435
"cryptr": "^6.0.3",
3536
"date-fns": "^2.29.3",

pages/_app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'tailwindcss/tailwind.css'
22
import 'react-spring-bottom-sheet/dist/style.css'
33
import '../style.css'
44

5+
import { SpeedInsights } from '@vercel/speed-insights/next'
56
import CounterSnippet from 'components/CounterSnippet'
67
import { NextIntlProvider } from 'next-intl'
78
import { Toaster } from 'react-hot-toast'
@@ -16,6 +17,7 @@ function App({ Component, pageProps }) {
1617
<Toaster containerClassName="print:hidden" />
1718
{process.env.NEXT_PUBLIC_COUNTER_DEV && <CounterSnippet />}
1819
<Component {...pageProps} />
20+
<SpeedInsights />
1921
</NextIntlProvider>
2022
)
2123
}

0 commit comments

Comments
 (0)