mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
a2fd4ea5c8
**This PR removes the special-case handling for metadata routes so it benefits from server hmr. It also adds tests.** Previously, metadata routes were excluded from Turbopack's server-side HMR and fell back to a full require-cache eviction on every change. This meant unmodified dependency modules were unnecessarily re-evaluated. Metadata routes use the same app-route.js template and getUserland() per-request getter as regular route handlers, so they can participate in in-place server HMR the same way. Remove the isMetadataRoute() exclusion from the usesServerHmr gate. Test Plan: Added e2e test for testing selective hmr eviction Co-authored-by: Will Binns-Smith <wbinnssmith@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
3 lines
84 B
TypeScript
3 lines
84 B
TypeScript
export const depEvaluatedAt = Date.now()
|
|
export const manifestVersion = 'Version 0'
|