File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,6 @@ let nextConfig = {
42
42
images : {
43
43
domains : [ "squonk.informaticsmatters.org" ] ,
44
44
} ,
45
- sentry : {
46
- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map
47
- // Added to remove a console message, this will become the default in v8 so can be remove then
48
- hideSourceMaps : true ,
49
- } ,
50
45
// Allow mdx content and mdx files as pages
51
46
webpack ( config , options ) {
52
47
if ( options . isServer ) {
Original file line number Diff line number Diff line change
1
+ export async function register ( ) {
2
+ if ( process . env . NEXT_RUNTIME === "nodejs" ) {
3
+ await import ( "../sentry.server.config" ) ;
4
+ }
5
+
6
+ if ( process . env . NEXT_RUNTIME === "edge" ) {
7
+ await import ( "../sentry.edge.config" ) ;
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments