We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f338983 commit 8919cc7Copy full SHA for 8919cc7
1 file changed
packages/nextjs/src/config/withSentryConfig/getFinalConfigObjectUtils.ts
@@ -98,9 +98,14 @@ export function maybeCreateRouteManifest(
98
);
99
}
100
101
- // Check if manifest injection is disabled (new option takes precedence)
+ // If explicitly disabled, skip
102
+ if (userSentryOptions.routeManifestInjection === false) {
103
+ return undefined;
104
+ }
105
+
106
+ // Still check the deprecated option if the new option is not set
107
// eslint-disable-next-line deprecation/deprecation
- if (userSentryOptions.routeManifestInjection === false || userSentryOptions.disableManifestInjection) {
108
+ if (userSentryOptions.routeManifestInjection === undefined && userSentryOptions.disableManifestInjection) {
109
return undefined;
110
111
0 commit comments