• Type: boolean | Object
  • Default: false

When enabled, the router option provides routing management for Modern.js conventional routes. It is based on React Router 6.


  • Type: string
  • Default: ``

The basename option specifies the subpath where the app is deployed, for situations where it cannot be deployed to the root domain.


  • Type: boolean
  • Default: 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.