rsnext/packages
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
..
create-next-app v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
eslint-config-next v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
eslint-plugin-next v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
font v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
next disable static generation on interception routes (#61004) 2024-01-22 16:33:39 -08:00
next-bundle-analyzer v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
next-codemod v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
next-env v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
next-mdx v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
next-plugin-storybook v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
next-polyfill-module v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
next-polyfill-nomodule v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
next-swc v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
react-dev-overlay v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
react-refresh-utils v14.1.1-canary.6 2024-01-22 22:46:28 +00:00
third-parties v14.1.1-canary.6 2024-01-22 22:46:28 +00:00