rsnext/docs/advanced-features
JJ Kasper a485dc9af1
Add top-level trace include/exclude config (#44605)
This adds a top-level experimental config for including/excluding files
from the file traces. This replaces the page level
`unstable_includeFiles`/`unstable_excludeFiles` as those had some
drawbacks such as not being supported for API routes as these files
aren't required during build to gather the configs, having to duplicate
includes/excludes for multiple pages, and causing more confusion for
where the globs were meant to be relative to.

The new top-level configs allow mapping page globs to includes/excludes
so they can be shared across multiple pages or a single page. These can
also affect the `next-server` trace by specifying that as the key if
necessary. The previous `outputFileTraceIgnores` config is automatically
mapped to the new config with a deprecation warning.

## 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`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
tests added
- [x] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
2023-02-14 12:09:47 -08:00
..
amp-support docs: use descriptive links instead of "click here" (#25897) 2021-06-09 13:23:16 -05:00
react-18 uses spelling (#44399) 2022-12-30 21:26:25 +00:00
automatic-static-optimization.md chore(examples): fix active-class-name example (#37828) 2022-06-21 15:44:29 +00:00
ci-build-caching.md docs: update ci-build-caching (#41763) 2022-10-25 06:02:58 +00:00
codemods.md Fix docs for next/image upgrade guide (#42424) 2022-11-03 11:11:06 -07:00
compiler.md Add missing modularizeImports on config snippets (#44734) 2023-01-09 12:49:09 -08:00
custom-app.md Update custom-app.md (#44351) 2022-12-27 00:45:10 +00:00
custom-document.md Update the documentation. (#41758) 2022-10-26 14:04:45 -07:00
custom-error-page.md Update custom-error-page for getServerSideProps (#41723) 2022-10-24 19:00:14 +00:00
custom-server.md Remove all custom server integration examples (#42549) 2022-11-07 01:08:51 +00:00
customizing-babel-config.md fix(docs): update broken link for preset.ts (#44916) 2023-01-16 04:33:17 +00:00
customizing-postcss-config.md not ie 11 is dead (#44029) 2022-12-14 15:39:48 +00:00
debugging.md Update docs/advanced-features/debugging.md (#42842) 2022-11-14 12:58:03 +00:00
dynamic-import.md docs: update next/dynamic docs (#44067) 2022-12-19 13:38:30 -08:00
error-handling.md docs: Remove extraneous FallbackComponent prop from error boundary docs (#40785) 2022-09-22 09:04:44 -07:00
i18n-routing.md Update i18n-routing.md (#45448) 2023-01-31 08:50:46 -08:00
measuring-performance.md add attribution to web vitals (#39368) 2022-10-04 00:17:30 +00:00
middleware.md Cannot redeclare block-scoped variable 'cookie'. (#45079) 2023-01-20 14:46:05 +00:00
module-path-aliases.md Convert with-absolute-imports example to TypeScript (#42529) 2022-11-07 14:19:42 -08:00
multi-zones.md [docs] Update UTM params of some links (#39951) 2022-08-25 21:15:37 +00:00
output-file-tracing.md Add top-level trace include/exclude config (#44605) 2023-02-14 12:09:47 -08:00
preview-mode.md Add example for clearPreviewData with path to documentation (#45465) 2023-02-04 02:13:19 +00:00
security-headers.md Correct link to full list of Permissions-Policy permissions (#44607) 2023-01-05 13:48:49 -08:00
source-maps.md Updated copy around enabling source maps (#36852) 2022-05-12 11:45:23 +00:00
src-directory.md No info on environment variables in the src folder (#33110) (#33136) 2022-01-10 13:58:29 +00:00
static-html-export.md Remove "standalone" from next export docs (#45539) 2023-02-03 00:41:20 +00:00
turbopack.md Update Turbopack docs. (#44468) 2022-12-31 19:14:02 +00:00
using-mdx.md Update mdx docs example to show merging config (#44656) 2023-01-06 16:31:32 +00:00