Skip to content

Commit f9430fe

Browse files
committed
rename option
1 parent 2a4a35c commit f9430fe

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/nextjs/src/config/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as fs from 'fs';
77
import * as path from 'path';
88
import { sync as resolveSync } from 'resolve';
99
import 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.
1313
import type {

packages/nextjs/src/config/withSentryConfig.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { getSentryRelease } from '@sentry/node';
55
import * as childProcess from 'child_process';
66
import * as fs from 'fs';
77
import * 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';
1010
import 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

0 commit comments

Comments
 (0)