From 1296720969c1b8665a683ca9556df2a3acdd8f64 Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 16 Nov 2023 12:14:06 -0300 Subject: [PATCH] [skip ci] public source maps --- .github/workflows/upload-source-maps.yml | 1 - lib/sentry/config.ts | 4 ++-- next.config.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upload-source-maps.yml b/.github/workflows/upload-source-maps.yml index 95acd14f9e..0f5971e766 100644 --- a/.github/workflows/upload-source-maps.yml +++ b/.github/workflows/upload-source-maps.yml @@ -40,7 +40,6 @@ jobs: run: yarn build env: NODE_ENV: production - GENERATE_SOURCEMAPS: true - name: Inject Sentry debug ID run: yarn sentry-cli sourcemaps inject ./.next diff --git a/lib/sentry/config.ts b/lib/sentry/config.ts index fb6ea34b59..2ba5ae826a 100644 --- a/lib/sentry/config.ts +++ b/lib/sentry/config.ts @@ -10,11 +10,11 @@ export const config: Sentry.BrowserOptions | undefined = (() => { } const tracesSampleRate: number | undefined = (() => { - if (feature.environment === 'staging') { + if (feature.environment === 'staging' || feature.environment === 'development') { return 1; } - if (feature.environment === 'production' && feature.instance === 'eth') { + if (feature.environment === 'production') { return 0.2; } })(); diff --git a/next.config.js b/next.config.js index 2569585555..9c87b63887 100644 --- a/next.config.js +++ b/next.config.js @@ -42,7 +42,7 @@ const moduleExports = { redirects, headers, output: 'standalone', - productionBrowserSourceMaps: process.env.GENERATE_SOURCEMAPS === 'true', + productionBrowserSourceMaps: true, experimental: { instrumentationHook: true, },