From 5428e5a7a1d8ec5758aa852e0b8a1e04be261f4a Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Tue, 24 Oct 2023 00:43:34 -0700 Subject: [PATCH] Fix trace ignores (#57331) Fixes some of the ignores that were moved around in https://github.com/vercel/next.js/pull/57280 x-ref: https://github.com/vercel/vercel/actions/runs/6620930801/job/17989126942?pr=10756 --- packages/next/src/build/collect-build-traces.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/next/src/build/collect-build-traces.ts b/packages/next/src/build/collect-build-traces.ts index f8e1be4e96fd1..9b50e7d23abd0 100644 --- a/packages/next/src/build/collect-build-traces.ts +++ b/packages/next/src/build/collect-build-traces.ts @@ -268,16 +268,16 @@ export async function collectBuildTraces({ isStandalone ? null : '**/next/dist/compiled/jest-worker/**/*', '**/next/dist/compiled/webpack/(bundle4|bundle5).js', '**/node_modules/webpack5/**/*', - '**/next/dist/server/lib/squoosh/**/*.wasm', '**/next/dist/server/lib/route-resolver*', 'next/dist/compiled/@next/react-dev-overlay/dist/**/*', 'next/dist/compiled/semver/semver/**/*.js', - '**/next/dist/pages/**/*', + ...(ciEnvironment.hasNextSupport ? [ // only ignore image-optimizer code when // this is being handled outside of next-server '**/next/dist/server/image-optimizer.js', + '**/next/dist/server/lib/squoosh/**/*.wasm', ] : []), @@ -294,7 +294,7 @@ export async function collectBuildTraces({ ...sharedIgnores, '**/*.d.ts', '**/*.map', - + '**/next/dist/pages/**/*', ...(ciEnvironment.hasNextSupport ? ['**/node_modules/sharp/**/*'] : []), ].filter(nonNullable)