Hello! I'm trying the new unstable vite for remix after checking out the youtube video, but I'm stuck in this part: how to make a list of MDX files? I'm trying to make something like a blog index, so in a file /routes/blog.tsx, in the loader function, I'm trying to grab all mdx files but unsuccessful. Could someone point me the right direction? Thank you.
#Vite + MDX + Index of files
1 messages · Page 1 of 1 (latest)
We haven't written a good tutorial/example yet, but this is the approach: https://remix.run/docs/en/main/future/vite#update-mdx-filename-usage
Remix
Thank you (obrigado?) Pedro, really appreciate it. I thought for a moment that since vite was being used, that conversion wouldn’t be possible since it wasn’t going through remix. It’s right to assume then that “anything” is possible with remix being a plugin then?
I'm 🇲🇽, not 🇧🇷 , but good guess!
As for "anything is possible", pretty much! Most plugins, like MDX, are doing transforms to source code files and then handing those off to other plugins. This works great with Vite!
I guessed from the name not the last name 🙂 but either would do for brazilians so... hard guess haha