diff --git a/package-lock.json b/package-lock.json index e5d4a33..868ca21 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@astrojs/tailwind": "^5.1.3", "@astrojs/vercel": "^8.0.0", "@tailwindcss/typography": "^0.5.19", + "@vercel/speed-insights": "^2.0.0", "astro": "^5.0.0", "tailwindcss": "^3.4.0" } @@ -1907,6 +1908,44 @@ "ajv": "^6.12.3" } }, + "node_modules/@vercel/speed-insights": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-2.0.0.tgz", + "integrity": "sha512-jwkNcrTeafWxjmWq4AHBaptSqZiJkYU5adLC9QBSqeim0GcqDMgN5Ievh8OG1rJ6W3A4l1oiP7qr9CWxGuzu3w==", + "license": "Apache-2.0", + "peerDependencies": { + "@sveltejs/kit": "^1 || ^2", + "next": ">= 13", + "nuxt": ">= 3", + "react": "^18 || ^19 || ^19.0.0-rc", + "svelte": ">= 4", + "vue": "^3", + "vue-router": "^4" + }, + "peerDependenciesMeta": { + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "nuxt": { + "optional": true + }, + "react": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/abbrev": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz", diff --git a/package.json b/package.json index a4a034a..aa7c140 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@astrojs/tailwind": "^5.1.3", "@astrojs/vercel": "^8.0.0", "@tailwindcss/typography": "^0.5.19", + "@vercel/speed-insights": "^2.0.0", "astro": "^5.0.0", "tailwindcss": "^3.4.0" } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 48cc880..51373d1 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,4 +1,6 @@ --- +import SpeedInsights from '@vercel/speed-insights/astro'; + interface Props { title?: string; description?: string; @@ -52,6 +54,7 @@ const { +