Skip to content

Commit

Permalink
[skip ci] public source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Nov 16, 2023
1 parent 496858d commit 1296720
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/upload-source-maps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/sentry/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
})();
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const moduleExports = {
redirects,
headers,
output: 'standalone',
productionBrowserSourceMaps: process.env.GENERATE_SOURCEMAPS === 'true',
productionBrowserSourceMaps: true,
experimental: {
instrumentationHook: true,
},
Expand Down

0 comments on commit 1296720

Please sign in to comment.