From a7e8c2cc4af932034a7ba8bb33452c0be1cd5fde Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 13 Apr 2025 20:39:39 +0530 Subject: [PATCH] remove build concurrency workaround - no longer needed - didn't actually fix the actual issue which is because of rollup-plugin-dts not vitepress build - also buildConcurrency shouldn't be decided on the basis of number of threads but the available memory, it is used to compute how many pages are rendered at once, all of that is run on a single thread --- docs/.vitepress/config.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 2bfca70e..9074e08f 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -6,15 +6,6 @@ import { } from 'vitepress-plugin-group-icons' import llmstxt from 'vitepress-plugin-llms' -let buildConcurrency: number -try { - const { cpus } = await import('os') - buildConcurrency = 4 * cpus().length -} catch { - // edge services may not expose os module - buildConcurrency = 16 -} - export default defineConfig({ title: 'VitePress', @@ -25,7 +16,6 @@ export default defineConfig({ lastUpdated: true, cleanUrls: true, metaChunk: true, - buildConcurrency, markdown: { math: true,