Skip to content

Commit

Permalink
feat: read concurrency config
Browse files Browse the repository at this point in the history
  • Loading branch information
chaegumi committed Sep 13, 2024
1 parent 1396c6e commit 35d177e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ async function generatePage(
let timeStart = performance.now();
let prevTimeEnd = timeStart;
if(Number(config.build.concurrency) > 1){
const chunks_arr = chunk(paths, 10);
const chunks_arr = chunk(paths, Number(config.build.concurrency));
for (const chunks_arr_elem of chunks_arr) {
let promises = [];
for (let i in chunks_arr_elem) {
Expand Down

0 comments on commit 35d177e

Please sign in to comment.