Skip to content

Commit

Permalink
feat: add @vercel/speed-insights
Browse files Browse the repository at this point in the history
  • Loading branch information
pajecawav committed Dec 30, 2023
1 parent d7e6998 commit 7db8e2e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"dev": "pnpm build:languages && next dev",
"build": "pnpm build:languages && pnpm build:sitemap && pnpm build:app",
"build": "FORCE_COLOR=1 run-s -l build:languages build:sitemap build:app",
"build:languages": "tsx scripts/languages.ts",
"build:sitemap": "tsx scripts/sitemap.ts",
"build:app": "next build",
Expand All @@ -22,6 +22,7 @@
"@tanstack/react-query": "^5.14.2",
"@vercel/analytics": "^1.1.1",
"@vercel/og": "^0.6.1",
"@vercel/speed-insights": "^1.0.2",
"classnames": "^2.3.2",
"dayjs": "^1.11.10",
"next": "^14.0.4",
Expand Down
8 changes: 8 additions & 0 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/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
QueryClientProvider,
} from "@tanstack/react-query";
import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next";
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import { AppProps } from "next/app";
Expand Down Expand Up @@ -44,6 +45,7 @@ function MyApp({ Component, pageProps }: AppProps) {
`}</style>

<Analytics />
<SpeedInsights />

<QueryClientProvider client={queryClient}>
<HydrationBoundary state={pageProps.dehydratedState}>
Expand Down

1 comment on commit 7db8e2e

@vercel
Copy link

@vercel vercel bot commented on 7db8e2e Dec 30, 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:

ghloc – ./

ghloc.vercel.app
ghloc-pajecawav.vercel.app
ghloc-git-master-pajecawav.vercel.app

Please sign in to comment.