diff --git a/react-router.config.mjs b/react-router.config.mjs index ddb22da04..c60ba9f74 100644 --- a/react-router.config.mjs +++ b/react-router.config.mjs @@ -15,13 +15,15 @@ const { stdlibPaths } = await import("./app/routes.jsx"); export default { ssr: false, - - async prerender({ getStaticPaths }) { - return [ - ...(await getStaticPaths()), - ...(await mdx.paths()), - ...stdlibPaths, - ]; + prerender: { + async paths({ getStaticPaths }) { + return [ + ...getStaticPaths(), + ...(await mdx.paths()), + ...stdlibPaths, + ]; + }, + unstable_concurrency: 8, }, buildEnd: async () => { fs.cpSync("./build/client", "./out", { recursive: true });