rsnext/test
Zack Tanner cf0f090fca
disable static generation on interception routes (#61004)
### What & Why?
Interception routes depend on contextual information that are provided
via request headers. Specifically it needs to know about the
`Next-Router-State-Tree` when generating the interception route RSC
data, which isn't available at build time. This doesn't currently cause
any usage issues, but it erroneously emits static files & RSC payloads
that the client router won't be able to use and will instead fallback to
a dynamic request.

I removed some special case in an existing test since this fix also
resolves a discrepancy in behavior when PPR is turned on

### How?
This excludes interception routes from `appStaticPaths` at builds which
currently determines which pages should be statically generated.

Closes NEXT-2190
2024-01-22 16:33:39 -08:00
..
.stats-app chore: upgrade pnpm to 8.14.2 (#60995) 2024-01-22 14:12:09 -08:00
development refactor(analysis): rust based page-static-info, deprecate js parse interface in next-swc (#59300) 2024-01-22 14:42:28 -08:00
e2e disable static generation on interception routes (#61004) 2024-01-22 16:33:39 -08:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration Fix image-optimizer test for Turbopack (#60978) 2024-01-22 16:23:01 +01:00
lib Use snapshots for component-stack tests (#60768) 2024-01-18 13:44:03 +01:00
production refactor(analysis): rust based page-static-info, deprecate js parse interface in next-swc (#59300) 2024-01-22 14:42:28 -08:00
unit feat: stabilize unstable_getImgProps() => getImageProps() (#60739) 2024-01-17 18:28:49 -05:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
build-turbopack-tests-manifest.d.ts Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
build-turbopack-tests-manifest.js chore: skip flaky turbopack navigation test (#60431) 2024-01-09 14:25:08 +00:00
get-test-filter.js run tests from test suite that are not listed in the manifest (#58401) 2024-01-11 07:38:35 +00:00
jest-setup-after-env.ts Decrease default test timeouts (#56116) 2023-09-27 23:55:20 +00:00
ppr-tests-manifest.json Fix TypeError when using params in RootLayout with parallel routes (#60401) 2024-01-09 07:06:24 -08:00
readme.md
test-file.txt
tsconfig.json chore: extends from shared base tsconfig (#59776) 2023-12-19 18:52:22 +01:00
turbopack-tests-manifest.json Report HMR latency as trace spans for Turbopack (#60799) 2024-01-19 15:34:17 -08:00

See Testing for more information on how you can run/write/debug tests for Next.js.