Skip to content

Commit

Permalink
Try just MDX
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Nov 29, 2024
1 parent c2d800e commit 122bd67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/astro/src/integrations/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/mdx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 122bd67

Please sign in to comment.