Add Vercel Analytics via client plugin; use Yarn lockfile and remove npm lockfile

This commit is contained in:
2025-08-16 10:03:37 -06:00
parent 738f5a348a
commit 758df7627a
3 changed files with 755 additions and 732 deletions

View File

@@ -11,6 +11,7 @@
}, },
"dependencies": { "dependencies": {
"@fontsource-variable/roboto-slab": "^5.2.6", "@fontsource-variable/roboto-slab": "^5.2.6",
"@vercel/analytics": "^1.5.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

@@ -0,0 +1,17 @@
export default defineNuxtPlugin(() => {
if (import.meta.env.PROD) {
import('@vercel/analytics')
.then(({ inject }) => {
try {
inject();
} catch {
// ignore
}
})
.catch(() => {
// ignore
});
}
});

1469
yarn.lock

File diff suppressed because it is too large Load Diff