Skip to content

Commit

Permalink
Added Vercel speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterbryant committed Jan 24, 2024
1 parent f08609b commit 2947113
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@splinetool/runtime": "^1.0.31",
"@types/jsonwebtoken": "^9.0.5",
"@vercel/analytics": "^1.1.2",
"@vercel/speed-insights": "^1.0.7",
"embla-carousel": "8.0.0-rc19",
"embla-carousel-svelte": "8.0.0-rc19",
"embla-carousel-wheel-gestures": "8.0.0-rc05",
Expand Down
35 changes: 32 additions & 3 deletions pnpm-lock.yaml

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

4 changes: 4 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<script lang="ts">
import '../app.css';
import { dev } from '$app/environment';
import { inject } from '@vercel/analytics';
import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit';
import Links from '$lib/nav/Links.svelte';
import ChatBox from '$lib/ChatBox/ChatBox.svelte';
import lettermark from '$lib/assets/lettermark.svg';
Expand All @@ -15,6 +18,7 @@
import { page } from '$app/stores';
inject({ mode: dev ? 'development' : 'production' });
injectSpeedInsights();
export let data;
Expand Down

0 comments on commit 2947113

Please sign in to comment.