feat: integrate Sentry for error tracking and performance monitoring

- Added Sentry module to nuxt.config.ts and configured it for both client and server.
- Updated package.json to include @sentry/nuxt dependency.
- Created sentry.client.config.ts and sentry.server.config.ts for Sentry initialization with appropriate settings.
- Adjusted route rules and added additional configurations in nuxt.config.ts.
This commit is contained in:
yuanhau 2025-05-11 14:40:22 +08:00
parent 930713042e
commit dd61937945
6 changed files with 351 additions and 50 deletions

View file

@ -23,6 +23,7 @@
"@nuxtjs/robots": "5.2.10",
"@nuxtjs/seo": "3.0.3",
"@nuxtjs/tailwindcss": "6.14.0",
"@sentry/nuxt": "^9",
"@tailwindcss/vite": "^4.1.5",
"@uploadthing/nuxt": "^7.1.7",
"@vueuse/core": "^13.1.0",
@ -53,5 +54,8 @@
"devDependencies": {
"autoprefixer": "^10.4.21",
"postcss": "^8.5.3"
},
"overrides": {
"@vercel/nft": "^0.27.4"
}
}