Skip to content

Commit

Permalink
chore: add vercel speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
kettei-sproutty committed Jun 12, 2024
1 parent 70b9454 commit e738399
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
"@vercel/speed-insights": "^1.0.12",
"clsx": "^2.1.1",
"lefthook": "^1.6.15",
"mdsvex": "^0.11.2",
Expand Down
34 changes: 32 additions & 2 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/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { dev } from '$app/environment'
import { inject } from '@vercel/analytics'
import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit'

inject({ mode: dev ? 'development' : 'production' })
injectSpeedInsights()

0 comments on commit e738399

Please sign in to comment.