Try just MDX

This commit is contained in:
Matt Kane 2024-11-29 12:22:34 +00:00
parent c2d800ee78
commit 122bd67146
2 changed files with 2 additions and 4 deletions

View file

@ -184,9 +184,7 @@ export async function runHookConfigSetup({
if (!renderer.serverEntrypoint) {
throw new Error(`Renderer ${bold(renderer.name)} does not provide a serverEntrypoint.`);
}
if(renderer.serverEntrypoint instanceof URL) {
renderer.serverEntrypoint = fileURLToPath(renderer.serverEntrypoint);
}
if (renderer.name === 'astro:jsx') {
astroJSXRenderer = renderer;
} else {

View file

@ -54,7 +54,7 @@ export default function mdx(partialMdxOptions: Partial<MdxOptions> = {}): AstroI
addRenderer({
name: 'astro:jsx',
serverEntrypoint: new URL('../dist/server.js', import.meta.url),
serverEntrypoint: fileURLToPath(new URL('../dist/server.js', import.meta.url)),
});
addPageExtension('.mdx');
addContentEntryType({