TanStackT
TanStack15mo ago
7 replies
foolish-indigo

Is there an equivalent of SolidStart's renaming index.tsx option?

Hey folks, super quick question that I can't seem to find in the docs:

Is there a way to rename index.tsx files within a nested file route? For example, SolidStart's file router has an option to rename these index files: https://docs.solidjs.com/solid-start/building-your-application/routing#renaming-index

|-- routes/                       // example.com
    |-- socials/
        |-- (socials).tsx           // example.com/socials


Is there an option or equivalent way to achieve this in Router?
Was this page helpful?