Skip to content

Commit de44fe0

Browse files
committed
merge stuff
1 parent 4c0d008 commit de44fe0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

packages/nextjs/src/config/turbopack/constructTurbopackConfig.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ import type {
1616
*/
1717
export function constructTurbopackConfig({
1818
userNextConfig,
19-
manifest,
19+
routeManifest,
2020
}: {
2121
userNextConfig: NextConfigObject;
2222
userSentryOptions: SentryBuildOptions;
23-
manifest?: RouteManifest;
23+
routeManifest?: RouteManifest;
2424
}): TurbopackOptions {
2525
const newConfig: TurbopackOptions = {
2626
...userNextConfig.turbopack,
2727
};
2828

29-
if (manifest) {
29+
if (routeManifest) {
3030
newConfig.rules = safelyAddTurbopackRule(newConfig.rules, {
3131
matcher: '**/instrumentation-client.*',
3232
rule: {
@@ -35,7 +35,7 @@ export function constructTurbopackConfig({
3535
loader: path.resolve(__dirname, '../loaders/valueInjectionLoader.js'),
3636
options: {
3737
values: {
38-
_sentryRouteManifest: JSON.stringify(manifest),
38+
_sentryRouteManifest: JSON.stringify(routeManifest),
3939
},
4040
},
4141
},

packages/nextjs/src/config/withSentryConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function getFinalConfigObject(
320320
? constructTurbopackConfig({
321321
userNextConfig: incomingUserNextConfigObject,
322322
userSentryOptions,
323-
manifest: routeManifest,
323+
routeManifest,
324324
})
325325
: undefined,
326326
};

packages/nextjs/test/config/turbopack/constructTurbopackConfig.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('constructTurbopackConfig', () => {
4848
const result = constructTurbopackConfig({
4949
userNextConfig,
5050
userSentryOptions: mockSentryOptions,
51-
manifest: mockRouteManifest,
51+
routeManifest: mockRouteManifest,
5252
});
5353

5454
expect(result).toEqual({
@@ -76,10 +76,10 @@ describe('constructTurbopackConfig', () => {
7676
constructTurbopackConfig({
7777
userNextConfig,
7878
userSentryOptions: mockSentryOptions,
79-
manifest: mockRouteManifest,
79+
routeManifest: mockRouteManifest,
8080
});
8181

82-
expect(pathResolveSpy).toHaveBeenCalledWith(expect.any(String), 'loaders/valueInjectionLoader.js');
82+
expect(pathResolveSpy).toHaveBeenCalledWith(expect.any(String), '../loaders/valueInjectionLoader.js');
8383
});
8484
});
8585

@@ -126,7 +126,7 @@ describe('constructTurbopackConfig', () => {
126126
const result = constructTurbopackConfig({
127127
userNextConfig,
128128
userSentryOptions: mockSentryOptions,
129-
manifest: mockRouteManifest,
129+
routeManifest: mockRouteManifest,
130130
});
131131

132132
expect(result).toEqual({
@@ -172,7 +172,7 @@ describe('constructTurbopackConfig', () => {
172172
const result = constructTurbopackConfig({
173173
userNextConfig,
174174
userSentryOptions: mockSentryOptions,
175-
manifest: mockRouteManifest,
175+
routeManifest: mockRouteManifest,
176176
});
177177

178178
expect(result).toEqual({
@@ -191,7 +191,7 @@ describe('constructTurbopackConfig', () => {
191191
const result = constructTurbopackConfig({
192192
userNextConfig,
193193
userSentryOptions: mockSentryOptions,
194-
manifest: emptyManifest,
194+
routeManifest: emptyManifest,
195195
});
196196

197197
expect(result).toEqual({
@@ -224,7 +224,7 @@ describe('constructTurbopackConfig', () => {
224224
const result = constructTurbopackConfig({
225225
userNextConfig,
226226
userSentryOptions: mockSentryOptions,
227-
manifest: complexManifest,
227+
routeManifest: complexManifest,
228228
});
229229

230230
expect(result).toEqual({

0 commit comments

Comments
 (0)