forked from rajun/ar-test
fix: load all routes up front to stop full reloads after creating a project
This commit is contained in:
parent
de5ac76637
commit
b4ea056659
@ -4,4 +4,9 @@ export default {
|
|||||||
// Config options...
|
// Config options...
|
||||||
// Server-side render by default, to enable SPA mode set this to `false`
|
// Server-side render by default, to enable SPA mode set this to `false`
|
||||||
ssr: true,
|
ssr: true,
|
||||||
|
// Send every route with the first page. The default ("lazy") asks the server about unseen URLs such as a
|
||||||
|
// just-created /projects/:id, and forces a full page load when the server's route list has changed since the
|
||||||
|
// tab opened, which left the admin on the loading screen after creating a project. This app has a handful of
|
||||||
|
// routes, so lazy discovery saves nothing.
|
||||||
|
routeDiscovery: { mode: "initial" },
|
||||||
} satisfies Config;
|
} satisfies Config;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user