Skip to content

Commit 97520cc

Browse files
authored
Leverage outputFileTracingIgnores for next-server trace as well (#43108)
Follow-up to #43103 this adds the ignores to the `next-server` trace as well since it may be needed for some cases as well. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
1 parent ebbd9a9 commit 97520cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/next/build/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,7 @@ export default async function build(
18571857
...(!hasSsrAmpPages
18581858
? ['**/next/dist/compiled/@ampproject/toolbox-optimizer/**/*']
18591859
: []),
1860+
...(config.experimental.outputFileTracingIgnores || []),
18601861
]
18611862
const ignoreFn = (pathname: string) => {
18621863
return isMatch(pathname, ignores, { contains: true, dot: true })

0 commit comments

Comments
 (0)