T
TanStack•6mo ago
ratty-blush

Mdx as route

Hi!, It is posible to add mdx file as route in file based routing?
12 Replies
fascinating-indigo
fascinating-indigo•6mo ago
not yet
ratty-blush
ratty-blushOP•6mo ago
ok, thanks!
fascinating-indigo
fascinating-indigo•6mo ago
GitHub
[router-generator] Framework specific file-naming conventions · Ta...
Currently, the routeTree generation support file routes of the following naming: solid: .tsx, .ts (jsx: preserve, jsxImportSource: "solid-js") react: .tsx, .ts (jsx: "react-jsx"...
fascinating-indigo
fascinating-indigo•6mo ago
might want to chime in whether you want to use path and params for mdx routes
loud-coral
loud-coral•6mo ago
@isccown125 where you able to get mdx to work? i have been struggling all day to get it to work with start
ratty-blush
ratty-blushOP•6mo ago
@gaytomycode i run mdx with vite 😄
ratty-blush
ratty-blushOP•6mo ago
MDX
Markdown for the component era | MDX
MDX lets you use JSX in your markdown content. You can import components, such as interactive charts or alerts, and embed them within your content. This makes writing long-form content with components a blast.
ratty-blush
ratty-blushOP•6mo ago
in vite config you should add plugin
No description
ratty-blush
ratty-blushOP•6mo ago
from :
No description
ratty-blush
ratty-blushOP•6mo ago
If you use weback or other frameword/js/ts you have tutorial in docs
absent-sapphire
absent-sapphire•3mo ago
curiuos how this would work with TanstackStart any luck?
automatic-azure
automatic-azure•2mo ago
Anyone has a solution to share?

Did you find this page helpful?