diff --git a/package.json b/package.json index 13a9cf0..5ef375f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d2ff467..ea994fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,6 +52,9 @@ devDependencies: '@tailwindcss/nesting': specifier: 0.0.0-insiders.565cd3e version: 0.0.0-insiders.565cd3e(postcss@8.4.38) + '@vercel/speed-insights': + specifier: ^1.0.12 + version: 1.0.12(@sveltejs/kit@2.5.10)(react@18.2.0)(svelte@5.0.0-next.143) clsx: specifier: ^2.1.1 version: 2.1.1 @@ -922,6 +925,35 @@ packages: server-only: 0.0.1 dev: false + /@vercel/speed-insights@1.0.12(@sveltejs/kit@2.5.10)(react@18.2.0)(svelte@5.0.0-next.143): + resolution: {integrity: sha512-ZGQ+a7bcfWJD2VYEp2R1LHvRAMyyaFBYytZXsfnbOMkeOvzGNVxUL7aVUvisIrTZjXTSsxG45DKX7yiw6nq2Jw==} + requiresBuild: true + peerDependencies: + '@sveltejs/kit': ^1 || ^2 + next: '>= 13' + react: ^18 || ^19 + svelte: ^4 + vue: ^3 + vue-router: ^4 + peerDependenciesMeta: + '@sveltejs/kit': + optional: true + next: + optional: true + react: + optional: true + svelte: + optional: true + vue: + optional: true + vue-router: + optional: true + dependencies: + '@sveltejs/kit': 2.5.10(@sveltejs/vite-plugin-svelte@3.1.0)(svelte@5.0.0-next.143)(vite@5.2.11) + react: 18.2.0 + svelte: 5.0.0-next.143 + dev: true + /JSONStream@1.3.5: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true @@ -1920,7 +1952,6 @@ packages: hasBin: true dependencies: js-tokens: 4.0.0 - dev: false /lru-cache@10.2.2: resolution: {integrity: sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==} @@ -2293,7 +2324,6 @@ packages: engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 - dev: false /read-cache@1.0.0: resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index 31f7052..2532594 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -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()