Closed NotNite closed 6 months ago
You want the following entrypoint:
renderers: [
{ name: "@astrojs/mdx", serverEntrypoint: "astro/jsx/server.js" },
],
You can refer to this example, that uses MDX: https://github.com/delucis/astro-blog-full-text-rss/blob/latest/src/pages/rss.xml.ts
In the future we'll be making it easier to configure the renderers, so this won't be needed.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The Container API expects an
AstroRenderer
but the MDX package cannot be used as one.It leads to this error at build time:
where that line is
if (await r.ssr.check.call({ result }, Component, props, children)) {
inrenderFrameworkComponent
.Not providing the renderer leads to:
Does MDX just not support SSR in any form? I was hoping the Container API could let me render my blog posts for RSS...
What's the expected result?
To render the MDX component without issue.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-kpdza3?file=src%2Fpages%2Fblog%2Frss.xml.js
Participation