From e22584b60010f4eaea30b824faa478b4a612878f Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Sat, 16 Aug 2025 10:08:32 -0600 Subject: [PATCH] Use from '@vercel/analytics/nuxt' and remove custom plugin --- app/app.vue | 5 +++++ plugins/vercel-analytics.client.ts | 17 ----------------- 2 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 plugins/vercel-analytics.client.ts diff --git a/app/app.vue b/app/app.vue index ed9e94c..62addc2 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,8 +1,13 @@ + + diff --git a/plugins/vercel-analytics.client.ts b/plugins/vercel-analytics.client.ts deleted file mode 100644 index 0457040..0000000 --- a/plugins/vercel-analytics.client.ts +++ /dev/null @@ -1,17 +0,0 @@ -export default defineNuxtPlugin(() => { - if (import.meta.env.PROD) { - import('@vercel/analytics') - .then(({ inject }) => { - try { - inject(); - } catch { - // ignore - } - }) - .catch(() => { - // ignore - }); - } -}); - -