Commit 12967209 authored by tom's avatar tom

[skip ci] public source maps

parent 496858d8
...@@ -40,7 +40,6 @@ jobs: ...@@ -40,7 +40,6 @@ jobs:
run: yarn build run: yarn build
env: env:
NODE_ENV: production NODE_ENV: production
GENERATE_SOURCEMAPS: true
- name: Inject Sentry debug ID - name: Inject Sentry debug ID
run: yarn sentry-cli sourcemaps inject ./.next run: yarn sentry-cli sourcemaps inject ./.next
......
...@@ -10,11 +10,11 @@ export const config: Sentry.BrowserOptions | undefined = (() => { ...@@ -10,11 +10,11 @@ export const config: Sentry.BrowserOptions | undefined = (() => {
} }
const tracesSampleRate: number | undefined = (() => { const tracesSampleRate: number | undefined = (() => {
if (feature.environment === 'staging') { if (feature.environment === 'staging' || feature.environment === 'development') {
return 1; return 1;
} }
if (feature.environment === 'production' && feature.instance === 'eth') { if (feature.environment === 'production') {
return 0.2; return 0.2;
} }
})(); })();
......
...@@ -42,7 +42,7 @@ const moduleExports = { ...@@ -42,7 +42,7 @@ const moduleExports = {
redirects, redirects,
headers, headers,
output: 'standalone', output: 'standalone',
productionBrowserSourceMaps: process.env.GENERATE_SOURCEMAPS === 'true', productionBrowserSourceMaps: true,
experimental: { experimental: {
instrumentationHook: true, instrumentationHook: true,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment