Skip to content

Commit

Permalink
chore: enable Vercel speed insights on site (#12273)
Browse files Browse the repository at this point in the history
privacy-compliant way to track performance metrics on our sites
  • Loading branch information
dummdidumm authored May 29, 2024
1 parent 6c490ad commit c173b7a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions sites/kit.svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/d3-geo": "^3.1.0",
"@types/node": "^18.19.3",
"@vercel/speed-insights": "^1.0.0",
"browserslist": "^4.22.2",
"flexsearch": "^0.7.31",
"lightningcss": "^1.22.1",
Expand Down
3 changes: 3 additions & 0 deletions sites/kit.svelte.dev/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import { Banners, Icon, Shell } from '@sveltejs/site-kit/components';
import { Nav, Separator } from '@sveltejs/site-kit/nav';
import { Search, SearchBox } from '@sveltejs/site-kit/search';
import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit';
injectSpeedInsights();
export let data;
Expand Down

0 comments on commit c173b7a

Please sign in to comment.