Skip to content
Discussion options

You must be logged in to vote

If you want to use .mdx files as routes you'll probably need to convert your files to be parsable by remark.

But you still can roll your own implementation.
I'd recommend checking out the blog implementation of kentcdodds.com for a production reference

It's served from .md files on github.
See route implementation + the underlying markdown handlers mdx.ts and compile-mdx.server.ts ...they still use remark here, but a similar approach will also work with all other sorts of just-in-time content preparation.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rawnly
Comment options

@niklasgrewe
Comment options

@rawnly
Comment options

Answer selected by machour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants