Optional
appOptional
basename?: stringThe React Router app basename. Defaults to "/"
.
Optional
buildThe path to the build directory, relative to the project. Defaults to
"build"
.
Optional
buildA function that is called after the full React Router build is complete.
Optional
future?: [keyof FutureConfig] extends [never]Enabled future flags
Optional
prerender?: 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.
Optional
presets?: Preset[]An array of React Router plugin config presets to ease integration with other platforms and tools.
Optional
serverThe 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"
.
Optional
serverA 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.
Optional
serverThe output format of the server build. Defaults to "esm".
Optional
ssr?: 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
.
The path to the
app
directory, relative to the root directory. Defaults to"app"
.