You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.',
287
+
);
288
+
}
289
+
278
290
// If not explicitly set, turbopack uses the runAfterProductionCompile hook (as there are no alternatives), webpack does not.
'[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.',
1199
+
);
1200
+
1201
+
consoleWarnSpy.mockRestore();
1202
+
});
1203
+
1204
+
it('does not warn when useRunAfterProductionCompileHook is enabled with supported Next.js version in webpack mode',()=>{
'[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.',
'[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.',
'[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.',
1320
+
);
1321
+
1322
+
consoleWarnSpy.mockRestore();
1323
+
});
1324
+
1325
+
it('does not warn with supported Next.js versions',()=>{
'[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.',
1396
+
);
1397
+
1398
+
consoleWarnSpy.mockRestore();
1399
+
});
1400
+
1401
+
it('handles edge case when Next.js version is empty string',()=>{
'[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.',
1415
+
);
1416
+
1417
+
consoleWarnSpy.mockRestore();
1418
+
});
1419
+
1420
+
it('works correctly with other sentry options present',()=>{
'[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.',
1439
+
);
1440
+
1441
+
// Ensure other functionality still works (tunnel route creates rewrites function)
0 commit comments