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

12
sentry.server.config.ts Normal file
View file

@ -0,0 +1,12 @@
import * as Sentry from "@sentry/nuxt";
Sentry.init({
dsn: "https://1bbb1ceec04d13efdffa583ac5453e08@o4507948895174656.ingest.us.sentry.io/4509303135862784",
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});