Skip to content

Commit 1c73c29

Browse files
committed
log only after webpack check
1 parent 729d336 commit 1c73c29

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/nextjs/src/config/handleRunAfterProductionCompile.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ export async function handleRunAfterProductionCompile(
1111
{ releaseName, distDir, buildTool }: { releaseName?: string; distDir: string; buildTool: 'webpack' | 'turbopack' },
1212
sentryBuildOptions: SentryBuildOptions,
1313
): Promise<void> {
14-
if (sentryBuildOptions.debug) {
15-
// eslint-disable-next-line no-console
16-
console.debug('[@sentry/nextjs] Running runAfterProductionCompile logic.');
17-
}
18-
1914
// We don't want to do anything for webpack at this point because the plugin already handles this
2015
// TODO: Actually implement this for webpack as well
2116
if (buildTool === 'webpack') {
2217
return;
2318
}
2419

20+
if (sentryBuildOptions.debug) {
21+
// eslint-disable-next-line no-console
22+
console.debug('[@sentry/nextjs] Running runAfterProductionCompile logic.');
23+
}
24+
2525
const { createSentryBuildPluginManager } =
2626
loadModule<{ createSentryBuildPluginManager: typeof createSentryBuildPluginManagerType }>(
2727
'@sentry/bundler-plugin-core',

0 commit comments

Comments
 (0)