File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/nextjs/src/config Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ export function constructWebpackConfigFunction(
80
80
// `newConfig.module.rules` is required, so we don't have to keep asserting its existence
81
81
const newConfig = setUpModuleRules ( rawNewConfig ) ;
82
82
83
- if ( isServer ) {
84
- // This loader will inject code setting global values for use by `RewriteFrames`
85
- addRewriteFramesLoader ( newConfig , 'server' , userNextConfig ) ;
83
+ // Add a loader which will inject code that sets global values for use by `RewriteFrames`
84
+ addRewriteFramesLoader ( newConfig , isServer ? 'server' : 'client' , userNextConfig ) ;
86
85
86
+ if ( isServer ) {
87
87
if ( userSentryOptions . autoInstrumentServerFunctions !== false ) {
88
88
const pagesDir = newConfig . resolve ?. alias ?. [ 'private-next-pages' ] as string ;
89
89
You can’t perform that action at this time.
0 commit comments