Commit 12967209 authored by tom's avatar tom

[skip ci] public source maps

parent 496858d8
......@@ -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
......
......@@ -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;
}
})();
......
......@@ -42,7 +42,7 @@ const moduleExports = {
redirects,
headers,
output: 'standalone',
productionBrowserSourceMaps: process.env.GENERATE_SOURCEMAPS === 'true',
productionBrowserSourceMaps: true,
experimental: {
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