How to change the generated path? #73
-
Hello gentlemen, I'm migrating from vite-plugin-pages and I'm trying to change the way the path inside the typed-router.d.ts is generated. I've tried using the getRouteName option but it only changed the name, not the path. Is there any way to achieve this? Here is the RouteRecordInfo interface, used in the examples I provided below (I'm trying to change the path only):
Here is the original generation: Here is the result I got after using the getRouteName option: My getRouteName method, a variation of the getFileBasedRouteName used in the unplugin-vue-router source code:
Here is the result I wish I could achieve (the named route keep the diacritic, but not the path): Sorry for bothering you, but I've tried almost everything, but nothing except renaming the file to remove the diacritic worked. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
use definePage({ path: '...' }) or the route block shown in the readme |
Beta Was this translation helpful? Give feedback.
use
or the route block shown in the readme