lambda-packages icon indicating copy to clipboard operation
lambda-packages copied to clipboard

Add an option in the astro config build object to set concurrency

Open jwickers opened this issue 3 years ago • 4 comments

Changes

This makes concurrency optional using the implementation that was removed before. By default still use a concurrency of 1 and does not change anything in the build.

(reopen #4052)

One can set it in their astro.config.mjs:

export default defineConfig({
	// integrations: [...],
	build: {
		concurrency: 8,
	},
	// adapter: ...
});

Signed-off-by: Jeremy Wickersheimer [email protected]

Testing

Tested with a very large build that has >300k pages (mostly all in one URL pattern). Manages to reduce the total build from 6000s to 3000s with a concurrency of 8.

Docs

May need a Doc update to mention the new setting.

jwickers avatar Aug 29 '22 10:08 jwickers