13 lines
622 B
TypeScript
13 lines
622 B
TypeScript
import type { Config } from "@react-router/dev/config";
|
|
|
|
export default {
|
|
// Config options...
|
|
// Server-side render by default, to enable SPA mode set this to `false`
|
|
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;
|