advice on filesystem routing
is there a way to achieve this posts structure from the docs without having both a directory named posts and a posts.tsx ideally I could have something like
posts/
with a layout.tsx and then also index.tsx and $postId.tsx. not having everything post-related contained within the posts
directory itslef feels confusing to me.
2 Replies
afraid-scarlet•9mo ago
instead of
you can have
sensitive-blueOP•9mo ago
oh thats exactly what i wanted, thank you!