mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
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:
parent
930713042e
commit
dd61937945
6 changed files with 351 additions and 50 deletions
12
sentry.server.config.ts
Normal file
12
sentry.server.config.ts
Normal 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,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue