From d4172ed709cf71eedcd065727f4aa5554e32ac1e Mon Sep 17 00:00:00 2001 From: jderochervlk Date: Fri, 6 Feb 2026 10:26:47 -0500 Subject: [PATCH 1/2] build: enable React Router's unstable concurrency for prerendering --- react-router.config.mjs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/react-router.config.mjs b/react-router.config.mjs index ddb22da04..82a27c128 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: 4, }, buildEnd: async () => { fs.cpSync("./build/client", "./out", { recursive: true }); From 35c3149637d4b8b8f867a7826202f1278274059e Mon Sep 17 00:00:00 2001 From: jderochervlk Date: Fri, 6 Feb 2026 11:21:55 -0500 Subject: [PATCH 2/2] try 8 --- react-router.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-router.config.mjs b/react-router.config.mjs index 82a27c128..c60ba9f74 100644 --- a/react-router.config.mjs +++ b/react-router.config.mjs @@ -23,7 +23,7 @@ export default { ...stdlibPaths, ]; }, - unstable_concurrency: 4, + unstable_concurrency: 8, }, buildEnd: async () => { fs.cpSync("./build/client", "./out", { recursive: true });