{{ route.params.slug }}!
-
+ Category {{ route.params.category }}
diff --git a/apps/nuxt/app/pages/index.vue b/apps/nuxt/pages/index.vue
similarity index 100%
rename from apps/nuxt/app/pages/index.vue
rename to apps/nuxt/pages/index.vue
diff --git a/apps/nuxt/server/tsconfig.json b/apps/nuxt/server/tsconfig.json
new file mode 100644
index 0000000..b9ed69c
--- /dev/null
+++ b/apps/nuxt/server/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../.nuxt/tsconfig.server.json"
+}
diff --git a/apps/nuxt/tsconfig.json b/apps/nuxt/tsconfig.json
index 6ae5970..a746f2a 100644
--- a/apps/nuxt/tsconfig.json
+++ b/apps/nuxt/tsconfig.json
@@ -1,17 +1,4 @@
{
- "files": [],
- "references": [
- {
- "path": "./.nuxt/tsconfig.app.json"
- },
- {
- "path": "./.nuxt/tsconfig.server.json"
- },
- {
- "path": "./.nuxt/tsconfig.shared.json"
- },
- {
- "path": "./.nuxt/tsconfig.node.json"
- }
- ]
+ // https://nuxt.com/docs/guide/concepts/typescript
+ "extends": "./.nuxt/tsconfig.json"
}
diff --git a/packages/web/package.json b/packages/web/package.json
index 317a6fe..6a0f89d 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -1,6 +1,6 @@
{
"name": "@vercel/analytics",
- "version": "1.6.0",
+ "version": "1.6.1",
"description": "Gain real-time traffic insights with Vercel Web Analytics",
"keywords": [
"analytics",
@@ -31,11 +31,6 @@
"import": "./dist/nuxt/index.mjs",
"require": "./dist/nuxt/index.js"
},
- "./nuxt/module": {
- "browser": "./dist/nuxt/module.mjs",
- "import": "./dist/nuxt/module.mjs",
- "require": "./dist/nuxt/module.js"
- },
"./react": {
"browser": "./dist/react/index.mjs",
"import": "./dist/react/index.mjs",
@@ -114,8 +109,6 @@
]
},
"devDependencies": {
- "@nuxt/kit": "^4.2.0",
- "@nuxt/schema": "^4.2.0",
"@swc/core": "^1.9.2",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
@@ -133,7 +126,6 @@
"@remix-run/react": "^2",
"@sveltejs/kit": "^1 || ^2",
"next": ">= 13",
- "nuxt": ">= 3",
"react": "^18 || ^19 || ^19.0.0-rc",
"svelte": ">= 4",
"vue": "^3",
diff --git a/packages/web/src/nuxt/index.ts b/packages/web/src/nuxt/index.ts
index d934cf1..9ea8248 100644
--- a/packages/web/src/nuxt/index.ts
+++ b/packages/web/src/nuxt/index.ts
@@ -1,43 +1,6 @@
-import { onNuxtReady, useRouter, useRoute } from 'nuxt/app';
import type { AnalyticsProps, BeforeSend, BeforeSendEvent } from '../types';
import { createComponent } from '../vue/create-component';
-import { inject, pageview, track } from '../generic';
-import { isBrowser, computeRoute } from '../utils';
-import { getBasePath } from './utils';
-// Export the Analytics component
-// Not recommended as must be used in both app.vue and error.vue
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- vue's defineComponent return type is any
export const Analytics = createComponent('nuxt');
export type { AnalyticsProps, BeforeSend, BeforeSendEvent };
-
-// Export the injectAnalytics script with automatic tracking on page changes
-function injectAnalytics(props: Omit