We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d879d commit 5dc425aCopy full SHA for 5dc425a
src/util/container.ts
@@ -37,9 +37,14 @@ export async function componentToString(
37
component: AstroComponentFactory,
38
props: any,
39
) {
40
- const renderers = await loadRenderers([getContainerRenderer()]);
41
- const container = await experimental_AstroContainer.create({
42
- renderers,
+ const container = await experimental_AstroContainer.create({});
+ container.addServerRenderer({
+ name: "astro:jsx",
43
+ renderer: mdxRenderer,
44
+ });
45
46
+ name: "@astrojs/react",
47
+ renderer: reactRenderer,
48
});
49
50
const html = await container.renderToString(component, {
0 commit comments