Skip to content

Commit fc6b2dd

Browse files
committed
Added Vercel speed insights plugin.
1 parent 0068d27 commit fc6b2dd

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Dates should be in`YYYY-MM-DD` format and versions are in [semantic versioning](
1313
### Maintenance
1414

1515
- Updated Playwright, Svelte, SvelteKit, vitest, eslint, supabase
16+
- Added Vercel speed insights plugin.
1617

1718
## v0.7.15 2025-06-08
1819

package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"devDependencies": {
2323
"@playwright/test": "^1",
2424
"@supabase/supabase-js": "^2",
25-
"supabase": "^2",
2625
"@sveltejs/adapter-auto": "^6",
2726
"@sveltejs/kit": "^2",
2827
"@sveltejs/vite-plugin-svelte": "^5",
@@ -34,6 +33,7 @@
3433
"eslint-plugin-svelte": "^3",
3534
"prettier": "^3",
3635
"prettier-plugin-svelte": "^3",
36+
"supabase": "^2",
3737
"svelte": "^5",
3838
"svelte-check": "^4",
3939
"tslib": "^2",
@@ -45,6 +45,7 @@
4545
"dependencies": {
4646
"@supabase/ssr": "^0",
4747
"@sveltejs/adapter-vercel": "^5",
48+
"@vercel/speed-insights": "^1.2.0",
4849
"date-fns": "^4",
4950
"fast-csv": "^5",
5051
"uuid": "^11",

src/routes/+layout.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@
3030
3131
import { type Snippet } from 'svelte';
3232
import { errors } from './errors.svelte';
33+
import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit';
3334
3435
interface Props {
3536
data: LayoutData;
3637
children?: Snippet;
3738
}
3839
40+
injectSpeedInsights();
41+
3942
let { data, children }: Props = $props();
4043
4144
let db = $state(new Organization(data.supabase));

0 commit comments

Comments
 (0)