Skip to content

Commit b01ddc7

Browse files
committed
conditionally add turbo
1 parent 1d9089f commit b01ddc7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/nextjs/src/config/withSentryConfig.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,15 @@ function getFinalConfigObject(
315315
webpack: !isTurbopack
316316
? constructWebpackConfigFunction(incomingUserNextConfigObject, userSentryOptions, releaseName, routeManifest)
317317
: undefined,
318-
turbopack:
319-
isTurbopackSupported && isTurbopack
320-
? constructTurbopackConfig({
318+
...(isTurbopackSupported && isTurbopack
319+
? {
320+
turbopack: constructTurbopackConfig({
321321
userNextConfig: incomingUserNextConfigObject,
322322
userSentryOptions,
323323
routeManifest,
324-
})
325-
: undefined,
324+
}),
325+
}
326+
: {}),
326327
};
327328
}
328329

0 commit comments

Comments
 (0)