Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
feat: vercel speed inside
Browse files Browse the repository at this point in the history
  • Loading branch information
Thuan Pham committed Dec 16, 2023
1 parent ad886c4 commit 8cdaeaf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@astrojs/rss": "^3.0.0",
"@resvg/resvg-js": "^2.6.0",
"@vercel/analytics": "^1.1.1",
"@vercel/speed-insights": "^1.0.2",
"astro": "^3.6.4",
"fuse.js": "^6.6.2",
"github-slugger": "^2.0.0",
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/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { SITE } from "@config";
import "@styles/base.css";
import { ViewTransitions } from "astro:transitions";
import { Analytics } from '@vercel/analytics/react';
import { SpeedInsights } from "@vercel/speed-insights/next"
const googleSiteVerification = import.meta.env.PUBLIC_GOOGLE_SITE_VERIFICATION;
Expand Down Expand Up @@ -84,6 +85,7 @@ const socialImageURL = new URL(
<script is:inline src="/toggle-theme.js"></script>

<Analytics />
<SpeedInsights/>
</head>
<body>
<slot />
Expand Down

0 comments on commit 8cdaeaf

Please sign in to comment.