mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
- Introduced SentryErrorButton component to demonstrate error tracking. - Updated nuxt.config.ts to include Sentry module and configuration. - Added Sentry client and server configuration files for error reporting. - Updated package.json to include @sentry/nuxt and updated dependencies. - Integrated SentryErrorButton component into the cookbook page.
9 lines
350 B
TypeScript
9 lines
350 B
TypeScript
import * as Sentry from "@sentry/nuxt";
|
|
|
|
Sentry.init({
|
|
dsn: useRuntimeConfig().public.sentry.dsn,
|
|
// 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,
|
|
});
|