Revert "Lazy route discovery to optimize hydration"
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This reverts commit f87718b171.
This commit is contained in:
Kalle
2026-08-22 18:01:13 +03:00
parent 3674a7dfe7
commit 1c469a2a6a

View File

@@ -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;