Option to rename index files #2624
taylorfsteele
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When working with file-based routing, the default way to create a path that matches the directory name is to create an
index.tsx
file within that directory:I personally find organizing routes and files this way really intuitive and I love getting all the benefits from bundlers when you have file based routing. However, it can be challenging to find the correct
index.tsx
file when searching or navigating within the project, since there will be potentially manyindex.tsx
files.SolidStart's file router features an option to rename these types of files to a customized name, while still retaining this path matching.
It would be great to rename or customize these index files for better search and navigation ergonomics. Potential ideas include:
posts_index.tsx
or something similarBeta Was this translation helpful? Give feedback.
All reactions