Remix MDX Routes
Use MDX routes with Remix and Content Collections
In remix there are several ways to define routes. For the sake of simplicity, we will use flat routes in this example, but it should be easy to adapt this example for directory routes.
Let's assume we have the following file structure:
Than we can define our collection like this:
And thats it! Now we can use our collection in our _index.tsx
file and Remix will do the rest for us: