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

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