How do I generate pages from mdx with Vite, React, and vite-plugin-pages? #1997
Unanswered
peytondmurray
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You might have more luck asking the pages plugin people :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to create a blog with Vite, React, and vite-plugin-pages, which generates routes for a bunch of my pages. I'm trying to generate a page (
/blog
) which lists routes to blog posts. How can I do this programmatically?Here's my
vite.config.js
:Here's the contents of
src/pages/Blog/
:Ideally the build toolchain would create the following routes:
/blog
, containing a list of blog posts/blog/2018-02-11-blog-post-abc
/blog/2019-12-08-blog-post-def
So far I can't tell if the
@mdx-js/rollup
plugin has produced any output, and I don't think any new routes have been generated. Does anyone have any advice here?Beta Was this translation helpful? Give feedback.
All reactions