Hana router is already configured for you right out of the box, but you can add a few options to change the functionality to match your application’s exact specs. Configuration can be done through the hana vite plugin in your vite config fileDocumentation Index
Fetch the complete documentation index at: https://docs.hana.leafphp.dev/llms.txt
Use this file to discover all available pages before exploring further.
Application Pages Directory
This is where Hana will load your routes from, and defaults tosrc/pages
app folder, so your routes will look like app/home/index.tsx
TypeScript Support
You can toggle TS support using thetypescript config option:
Lazy Route Loading
Hana automatically applies lazy loading to all your routes, which helps reduce bundle sizes and improves the overall performance of your app especially over not-so-good connections. You can toggle this using theuseLazy option
Router Mode
Hana supports history and hash mode for routing, and you can select the option you prefer using themode key

