mirror of
https://github.com/withastro/astro.git
synced 2025-01-22 10:31:53 -05:00
Try just MDX
This commit is contained in:
parent
c2d800ee78
commit
122bd67146
2 changed files with 2 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue