boolean | Object
false
When enabled, the router option provides routing management for Modern.js conventional routes. It is based on React Router 6.
string
The basename option specifies the subpath where the app is deployed, for situations where it cannot be deployed to the root domain.
boolean
true
If the value of supportHtml5History
is true
, BrowserRouter
would be used, otherwise HashRouter
would be used. BrowserRouter
is recommended.
When SSR is enabled, supportHtml5History
is not supported.