mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-22 19:16:09 -05:00
Revert "Lazy route discovery to optimize hydration"
This reverts commit f87718b171.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import type { Config } from "@react-router/dev/config";
|
||||
|
||||
export default {
|
||||
// Fog of war: inlines only the matched routes' manifest (~13KB) instead of the
|
||||
// full-route-tree manifest asset (~400KB at the time of writing) every page load
|
||||
routeDiscovery: { mode: "lazy" },
|
||||
// Upfront cost vs. lazy loading trade-off
|
||||
// also lazy loading causes more load on the server
|
||||
// this matches old Remix v2 behavior
|
||||
routeDiscovery: { mode: "initial" },
|
||||
splitRouteModules: true,
|
||||
} satisfies Config;
|
||||
|
||||
Reference in New Issue
Block a user