Skip to content

Commit 393a680

Browse files
authoredMay 29, 2024··
chore: enable Vercel speed insights on preview site (#625)
privacy-compliant way to track performance metrics on our sites
1 parent a345dca commit 393a680

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed
 

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"@replit/codemirror-vim": "^6.0.14",
5656
"@rich_harris/svelte-split-pane": "^1.1.3",
5757
"@sveltejs/repl": "^0.6.0",
58+
"@vercel/speed-insights": "^1.0.0",
5859
"@webcontainer/api": "^1.1.5",
5960
"adm-zip": "^0.5.10",
6061
"ansi-to-html": "^0.7.2",
@@ -69,4 +70,4 @@
6970
"yootils": "^0.3.1"
7071
},
7172
"packageManager": "pnpm@8.15.1"
72-
}
73+
}

‎pnpm-lock.yaml

+31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/routes/+layout.svelte

+3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
import { Icon, Shell } from '@sveltejs/site-kit/components';
66
import { Nav, Separator } from '@sveltejs/site-kit/nav';
77
import { Search, SearchBox } from '@sveltejs/site-kit/search';
8+
import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit';
89
import '@sveltejs/site-kit/styles/index.css';
910
import '../app.css';
1011
12+
injectSpeedInsights();
13+
1114
export let data;
1215
</script>
1316

0 commit comments

Comments
 (0)
Please sign in to comment.