Skip to content

Commit

Permalink
chore: enable Vercel speed insights on preview site (#625)
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 committed May 29, 2024
1 parent a345dca commit 393a680
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@replit/codemirror-vim": "^6.0.14",
"@rich_harris/svelte-split-pane": "^1.1.3",
"@sveltejs/repl": "^0.6.0",
"@vercel/speed-insights": "^1.0.0",
"@webcontainer/api": "^1.1.5",
"adm-zip": "^0.5.10",
"ansi-to-html": "^0.7.2",
Expand All @@ -69,4 +70,4 @@
"yootils": "^0.3.1"
},
"packageManager": "pnpm@8.15.1"
}
}
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.

3 changes: 3 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
import { 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';
import '@sveltejs/site-kit/styles/index.css';
import '../app.css';
injectSpeedInsights();
export let data;
</script>

Expand Down

0 comments on commit 393a680

Please sign in to comment.