Having trouble determining the best route forward for setting up something like the following structure
/ = Single type
/about = Repeatable type or single?
/about/the-team = Repeatable?
If I understand correctly, we should create a custom type for the about pages?
If I do that, and create a route in Next with /about/[slug]/page.tsx it renders /about and /about/about as the same page. It also doesn't throw a 404 if a document is not found for /about/broken for example What am I missing?
You don't necessarily need to create an individual custom type for the "About" section. Instead, you can create a page document with the UID "about", to represent the "About" page. Then the UID could be something else.
{
type: 'page',
uid: 'about',
path: '/about/:uid', // This could be /about/us
},
The other option could be to treat the About page as any other subpage of "page" in this same path
I see what you did there, and I think that would work. But if I wanted to capture all under an /about like /about/[slug] would using a Resovler do the trick?