rsnext/packages
Zack Tanner 734fa1df62
fix: ensure route handlers properly track dynamic access (#66446)
In #60645, dynamic access tracking was refactored but we erroneously
stopped tracking dynamic access in route handlers. Request proxying, as
well as tracking segment level configs (such as `export const dynamic =
'force-dynamic'`), were only enabled during static generation. This was
an unintended breaking change that consequently caused dynamic access to
not properly bail from data cache in various circumstances.

This adds some more rigorous testing for route handlers, as this seems
to be a fairly large gap in our fetch cache testing currently.

This PR is easiest to review with [whitespace
disabled](https://github.com/vercel/next.js/pull/66446/files?w=1).
2024-06-01 15:32:50 -07:00
..
create-next-app v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
eslint-config-next v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
eslint-plugin-next v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
font v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
next fix: ensure route handlers properly track dynamic access (#66446) 2024-06-01 15:32:50 -07:00
next-bundle-analyzer v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
next-codemod v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
next-env v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
next-mdx v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
next-plugin-storybook v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
next-polyfill-module v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
next-polyfill-nomodule v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
next-swc Update rust toolchain to nightly-2024-05-31 (#66428) 2024-06-01 03:37:04 +00:00
react-refresh-utils v15.0.0-canary.5 2024-05-31 23:22:44 +00:00
third-parties v15.0.0-canary.5 2024-05-31 23:22:44 +00:00