File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
packages/nextjs/src/config Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -468,11 +468,11 @@ export type SentryBuildOptions = {
468468 suppressOnRouterTransitionStartWarning ?: boolean ;
469469
470470 /**
471- * Enables manifest injection.
471+ * Disables manifest injection.
472472 *
473- * Defaults to `true `.
473+ * Defaults to `false `.
474474 */
475- enableManifest ?: boolean ;
475+ disableManifestInjection ?: boolean ;
476476
477477 /**
478478 * Contains a set of experimental flags that might change in future releases. These flags enable
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import * as fs from 'fs';
77import * as path from 'path' ;
88import { sync as resolveSync } from 'resolve' ;
99import type { VercelCronsConfig } from '../common/types' ;
10- import type { RouteManifest } from './manifest/buildManifest ' ;
10+ import type { RouteManifest } from './manifest/types ' ;
1111// Note: If you need to import a type from Webpack, do it in `types.ts` and export it from there. Otherwise, our
1212// circular dependency check thinks this file is importing from itself. See https://github.com/pahen/madge/issues/306.
1313import type {
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { getSentryRelease } from '@sentry/node';
55import * as childProcess from 'child_process' ;
66import * as fs from 'fs' ;
77import * as path from 'path' ;
8- import type { RouteManifest } from './manifest/buildManifest ' ;
9- import { createRouteManifest } from './manifest/buildManifest ' ;
8+ import { createRouteManifest } from './manifest/createRouteManifest ' ;
9+ import type { RouteManifest } from './manifest/types ' ;
1010import type {
1111 ExportedNextConfig as NextConfig ,
1212 NextConfigFunction ,
@@ -144,7 +144,7 @@ function getFinalConfigObject(
144144 }
145145
146146 let routeManifest : RouteManifest | undefined ;
147- if ( userSentryOptions . enableManifest !== false ) {
147+ if ( ! userSentryOptions . disableManifestInjection ) {
148148 routeManifest = createRouteManifest ( ) ;
149149 }
150150
You can’t perform that action at this time.
0 commit comments