TanStackT
TanStack6mo ago
16 replies
dual-salmon

What if I want a layout route named “`index`”?

If the file posts.index.tsx has been made to mean /posts/ and not /posts/index then how can layout route /posts/index be accomplished? Can this be done without changing the indexToken config option away from index?

* posts.index.tsx -> /posts/
* posts.[index].tsx -> /posts/[index]
* posts.index.route.tsx -> /posts/
* posts.index.index.tsx -> /posts/index/
* posts.index.index.route.tsx -> /posts/index/
* ??? -> /posts/index ?
Was this page helpful?