Skip to content

Commit

Permalink
chore: minor doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 1, 2023
1 parent 39d2c89 commit 22768c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions next.mdx.compiler.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export async function compileMDX(source, fileExtension) {
rehypePlugins: NEXT_REHYPE_PLUGINS,
remarkPlugins: NEXT_REMARK_PLUGINS,
format: fileExtension,
// This results on the minimal possible MDX parsed, and delegates
// another parser to actualy evaluate the MDX into JSX
// This instructs the MDX compiler to generate a minimal JSX-body
// to be consumed within MDX's `run` method, instead of a standalone React Application
outputFormat: 'function-body',
});

Expand Down
2 changes: 1 addition & 1 deletion pages/[...path].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const getStaticPaths: GetStaticPaths<DynamicStaticPaths> = async () => {
.filter(route => STATIC_ROUTES_IGNORES.every(e => !e(route)))
.map(route => mapPathnameToRoute(route.routeWithLocale));

paths = [...staticPaths, ...dynamicRoutes];
paths = staticPaths.concat(dynamicRoutes);
}

return { paths: paths.sort(), fallback: 'blocking' };
Expand Down

0 comments on commit 22768c6

Please sign in to comment.