Hello from content collections
This page lives at pages/hello-world.mdx and is served at /hello-world via the catch-all route in app/[...slug]/page.tsx.
Drop any .mdx file anywhere under pages/ — at any depth — and it becomes a page with full OpenGraph metadata from frontmatter.
How it works
content-collections.tsdefines thepagescollection- TimberJS activates
@content-collections/viteautomatically when it sees that config app/[...slug]/page.tsxcatches all routes, looks up the matching page, and renders it- The
export async function metadata()returns OpenGraph tags from frontmatter
Nested routes work too
Create pages/blog/my-post.mdx and it's available at /blog/my-post.