Setting Up MDX Blog in Vike Without Using Pages #2166
Unanswered
abdrahmanrizk
asked this question in
Help & Questions
Replies: 2 comments 1 reply
-
Have you seen https://vike.dev/markdown#metadata? See also #1082 (comment) — we're planing to update the official metadata recommendation. If you can wait a bit, I can show you the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Possibly related: https://vike.dev/onBeforePrerenderStart. I guess you'll be using pre-rendring. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to set up an MDX-based blog in a Vike project, but instead of using the default pages/ approach, I want a more flexible setup where:
What I've Tried
Problems with This Approach
All content is loaded on the frontend, which isn’t ideal for performance and SEO.
I tried using lazy components, but the issue is that I can't use them without wrapping them in Suspense, which forces client-side rendering instead of server-side rendering.
Any existing examples or best practices for this approach?
Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions