I also have problem as I want to make like this functionality
http://localhost:3000/developer-skills/gg/how-it-work -> it should open [slug]/page
http://localhost:3000/developer-skills/gg/ -> it should open [...category]/page
http://localhost:3000/developer-skills -> it should open [...category]/page
http://localhost:3000/developer-skills/what-is-aws/ -> it should open [slug]/page
How can I make like this for my file is
src/app/[...category]/page.tsx
src/app/[...category]/[slug]/page.tsx
as I created blog website as what-is-aws and how-it-work is the slug of blog and another is category and sub-category
but problem is that
/developer-skills/what-is-aws → [...category]/[slug]/page.tsx /developer-skills/gg/how-it-work → [...category]/[slug]/page.tsx
when I open it it will open a [...category]/page.tsx