---
title: "Discussion on \"how to generate the path like router config in vite + react + react-router project\" | Hashnode"
description: "Discussion on \"how to generate the path like router config in vite + react + react-router project\". when i use react-router and vite, i want to config my router in the router.config.ts file and also generate some config for the target path dir. (like the nextjs router which is automatically generated based on the file structure)\nconfig the router i..."
url: "https://hashnode.com/posts/how-to-generate-the-path-like-router-config-in-vite-react-react-router-project/678d0bfeac4c5b8aa7334b75"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [how to generate the path like router config in vite + react + react-router project](https://kazoottt.hashnode.dev/how-to-generate-the-path-like-router-config-in-vite-react-react-router-project?utm_source=hashnode&utm_medium=feed)

when i use react-router and vite, i want to config my router in the router.config.ts file and also generate some config for the target path dir. (like the nextjs router which is automatically generated based on the file structure) config the router i...

Jan 19, 2025 · 3 min read · kazoottt.hashnode.dev  
Read the article

-   [#vite](https://hashnode.com/tag/vite)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[KazooTTT](https://hashnode.com/@kazoottt)

@kazoottt

  
[View profile](https://hashnode.com/@kazoottt)

front-end developer, photography hobbyist, guitar, blender.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
