next.js
ce5206fa - [dynamicIO] Fix dev warmup (#77829)

Commit
1 year ago
[dynamicIO] Fix dev warmup (#77829) When `dynamicIO` is enabled, we're triggering a warmup request in dev mode. This ensures that replayed logs are associated with the correct environment (`Prerender` vs. `Server`), by seeding the caches before the actual render. This PR fixes two issues with the dev warmup: - Ensures that cache keys are identical between the warmup, the subsequent dynamic render, and the dynamic validation, by providing the HMR refresh hash (part of the cache key) for all dev render phases. - Ensures that stale cache entries are discarded during the warmup, by providing the implicit tags also during the warmup (and the dynamic validation).
Author
Parents
Loading