Enable Vercel Speed Insights for Nuxt app

This commit is contained in:
2025-08-16 11:15:48 -06:00
parent e22584b600
commit 2250721be3
3 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
<div> <div>
<NuxtRouteAnnouncer /> <NuxtRouteAnnouncer />
<Analytics /> <Analytics />
<SpeedInsights />
<NuxtLayout> <NuxtLayout>
<NuxtPage /> <NuxtPage />
</NuxtLayout> </NuxtLayout>
@@ -10,4 +11,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { Analytics } from '@vercel/analytics/nuxt' import { Analytics } from '@vercel/analytics/nuxt'
import { SpeedInsights } from '@vercel/speed-insights/nuxt'
</script> </script>

View File

@@ -12,6 +12,7 @@
"dependencies": { "dependencies": {
"@fontsource-variable/roboto-slab": "^5.2.6", "@fontsource-variable/roboto-slab": "^5.2.6",
"@vercel/analytics": "^1.5.0", "@vercel/analytics": "^1.5.0",
"@vercel/speed-insights": "^1.2.0",
"bulma": "^1.0.4", "bulma": "^1.0.4",
"nuxt": "^4.0.3", "nuxt": "^4.0.3",
"typescript": "^5.6.3", "typescript": "^5.6.3",

View File

@@ -1683,6 +1683,11 @@
picomatch "^4.0.2" picomatch "^4.0.2"
resolve-from "^5.0.0" resolve-from "^5.0.0"
"@vercel/speed-insights@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.2.0.tgz#1656c3596d4ec02d93d301ca45944c1b9b245186"
integrity sha512-y9GVzrUJ2xmgtQlzFP2KhVRoCglwfRQgjyfY607aU0hh0Un6d0OUyrJkjuAlsV18qR4zfoFPs/BiIj9YDS6Wzw==
"@vitejs/plugin-vue-jsx@^5.0.1": "@vitejs/plugin-vue-jsx@^5.0.1":
version "5.0.1" version "5.0.1"
resolved "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-5.0.1.tgz" resolved "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-5.0.1.tgz"