OptionalappThe path to the app directory, relative to the root directory. Defaults
to "app".
Optionalbasename?: stringThe React Router app basename. Defaults to "/".
OptionalbuildThe path to the build directory, relative to the project. Defaults to
"build".
OptionalbuildA function that is called after the full React Router build is complete.
Optionalfuture?: [keyof FutureConfig] extends [never]Enabled future flags
Optionalprerender?: boolean | string[] | ((args: { An array of URLs to prerender to HTML files at build time. Can also be a function returning an array to dynamically generate URLs.
Optionalpresets?: Preset[]An array of React Router plugin config presets to ease integration with other platforms and tools.
OptionalrouteControl the "Lazy Route Discovery" behavior
routeDiscovery.mode: By default, this resolves to lazy which will
lazily discover routes as the user navigates around your application.
You can set this to initial to opt-out of this behavior and load all
routes with the initial HTML document load.routeDiscovery.manifestPath: The path to serve the manifest file from.
Only applies to mode: "lazy" and defaults to /__manifest.OptionalserverThe file name of the server build output. This file
should end in a .js extension and should be deployed to your server.
Defaults to "index.js".
OptionalserverA function for assigning routes to different server bundles. This function should return a server bundle ID which will be used as the bundle's directory name within the server build directory.
OptionalserverThe output format of the server build. Defaults to "esm".
Optionalssr?: booleanEnable server-side rendering for your application. Disable to use "SPA
Mode", which will request the / path at build-time and save it as an
index.html file with your assets so your application can be deployed as a
SPA without server-rendering. Default's to true.
Config to be exported via the default export from
react-router.config.ts.