From 61a8401d29d89c97b665376fe3c23437dd3500ce Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Sat, 19 Jun 2021 16:38:23 +0100 Subject: [PATCH] sentry --- next.config.js | 7 ------- sentry.client.config.js | 10 ++++------ sentry.properties | 5 +++++ sentry.server.config.js | 10 ++++------ 4 files changed, 13 insertions(+), 19 deletions(-) create mode 100644 sentry.properties diff --git a/next.config.js b/next.config.js index 926bcd883..549114db3 100644 --- a/next.config.js +++ b/next.config.js @@ -2,13 +2,6 @@ const withPWA = require('next-pwa') const { withSentryConfig } = require('@sentry/nextjs') const SentryWebpackPluginOptions = { - // Additional config options for the Sentry Webpack plugin. Keep in mind that - // the following options are set automatically, and overriding them is not - // recommended: - // release, url, org, project, authToken, configFile, stripPrefix, - // urlPrefix, include, ignore - // For all available options, see: - // https://github.com/getsentry/sentry-webpack-plugin#options. silent: process.env.NODE_ENV === 'development', } diff --git a/sentry.client.config.js b/sentry.client.config.js index a00aeb8ac..46255988f 100644 --- a/sentry.client.config.js +++ b/sentry.client.config.js @@ -2,15 +2,13 @@ // The config you add here will be used whenever a page is visited. // https://docs.sentry.io/platforms/javascript/guides/nextjs/ -import * as Sentry from '@sentry/nextjs' +import * as Sentry from '@sentry/nextjs'; -const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN +const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; Sentry.init({ - dsn: - SENTRY_DSN || - 'https://d88435642612471d93823489a56ae053@o578706.ingest.sentry.io/5824198', + dsn: SENTRY_DSN || 'https://d88435642612471d93823489a56ae053@o578706.ingest.sentry.io/5824198', // Note: if you want to override the automatic release value, do not set a // `release` value here - use the environment variable `SENTRY_RELEASE`, so // that it will also get attached to your source maps -}) +}); diff --git a/sentry.properties b/sentry.properties new file mode 100644 index 000000000..6b8ec057b --- /dev/null +++ b/sentry.properties @@ -0,0 +1,5 @@ +defaults.url=https://sentry.io/ +defaults.org=stephen-ruiz-ltd +defaults.project=tldraw +auth.token=ac78d09cacd9445abb362a84d071534aef34b84d39704b1fa03f271417b07d30 +cli.executable=../../../.npm/_npx/a8388072043b4cbc/node_modules/@sentry/cli/bin/sentry-cli diff --git a/sentry.server.config.js b/sentry.server.config.js index b022be7d6..314160d14 100644 --- a/sentry.server.config.js +++ b/sentry.server.config.js @@ -2,15 +2,13 @@ // The config you add here will be used whenever the server handles a request. // https://docs.sentry.io/platforms/javascript/guides/nextjs/ -import * as Sentry from '@sentry/nextjs' +import * as Sentry from '@sentry/nextjs'; -const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN +const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; Sentry.init({ - dsn: - SENTRY_DSN || - 'https://d88435642612471d93823489a56ae053@o578706.ingest.sentry.io/5824198', + dsn: SENTRY_DSN || 'https://d88435642612471d93823489a56ae053@o578706.ingest.sentry.io/5824198', // Note: if you want to override the automatic release value, do not set a // `release` value here - use the environment variable `SENTRY_RELEASE`, so // that it will also get attached to your source maps -}) +});