Skip to content

Commit 2c89413

Browse files
committed
Wait wtf
1 parent 7624607 commit 2c89413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/webpack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export function constructWebpackConfigFunction(
189189
});
190190
}
191191

192-
if (userSentryOptions.autoInstrumentAppDirectory) {
192+
if (isServer && userSentryOptions.autoInstrumentAppDirectory !== false) {
193193
// Wrap page server components
194194
newConfig.module.rules.unshift({
195195
test: resourcePath => {

0 commit comments

Comments
 (0)