Skip to content

Commit a7e8c2c

Browse files
committed
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
1 parent 98dc562 commit a7e8c2c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

docs/.vitepress/config.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ import {
66
} from 'vitepress-plugin-group-icons'
77
import llmstxt from 'vitepress-plugin-llms'
88

9-
let buildConcurrency: number
10-
try {
11-
const { cpus } = await import('os')
12-
buildConcurrency = 4 * cpus().length
13-
} catch {
14-
// edge services may not expose os module
15-
buildConcurrency = 16
16-
}
17-
189
export default defineConfig({
1910
title: 'VitePress',
2011

@@ -25,7 +16,6 @@ export default defineConfig({
2516
lastUpdated: true,
2617
cleanUrls: true,
2718
metaChunk: true,
28-
buildConcurrency,
2919

3020
markdown: {
3121
math: true,

0 commit comments

Comments
 (0)