diff options
| author | 2023-04-22 19:52:26 +0800 | |
|---|---|---|
| committer | 2023-04-22 19:52:26 +0800 | |
| commit | 4838df315931bb883f704ec3e1abe2685f296cdf (patch) | |
| tree | 57a8550c4cd5338f1126364bb518c6cde8d96e7d /docs/sentry.client.config.js | |
| parent | db74ade0234a40c2120ad5f2a41bee50ce13de02 (diff) | |
| download | HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip | |
😀
Diffstat (limited to 'docs/sentry.client.config.js')
| -rw-r--r-- | docs/sentry.client.config.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/sentry.client.config.js b/docs/sentry.client.config.js new file mode 100644 index 0000000..27b8b2e --- /dev/null +++ b/docs/sentry.client.config.js @@ -0,0 +1,16 @@ +// This file configures the initialization of Sentry on the browser. +// https://docs.sentry.io/platforms/javascript/guides/nextjs/ + +import * as Sentry from "@sentry/nextjs"; + +Sentry.init({ + environment: process.env.NEXT_PUBLIC_VERCEL_ENV, + dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN, + // Adjust this value in production, or use tracesSampler for greater control + tracesSampleRate: 1.0, + ignoreUrls: [ + // Chrome extensions + /extensions\//i, + /^chrome:\/\//i, + ], +}); |
