forked from hozana/next-translate-routes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
17 lines (16 loc) · 898 Bytes
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Todo
- add exclude options to exclude redirects/rewrites
- fix looping redirect for /fr/bible
- check pageExtensions before adding a page in the routesTree
- check basePath compatibility
- check middlewares compatibility
- check if and where special characters should be escaped (<https://nextjs.org/docs/api-reference/next.config.js/rewrites#regex-path-matching>)
- support pages folder in src/pages
- validate custom pagesTree
- throw if destination is equal to source
- trow helpful errors (ex: for `compile(path)(augmentedQuery)` in case the query parameters for a dynamic segment is missing)
- improve comments, documentation
- getRouteList: (locale?: string) => (? Record<string, string[]> ? string? string[]?)
- create a function `getRouteSegments(filePath: string): TRouteSegment[]`
- return the whole path as is if not found and not dynamic file path
- export a routeExist function