Skip to content

Commit ddfbe40

Browse files
committed
Reduce memory consumption during CI
1 parent 355dd04 commit ddfbe40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docusaurus.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import type * as Preset from '@docusaurus/preset-classic';
33
import type * as Plugin from "@docusaurus/types/src/plugin";
44
import type * as OpenApiPlugin from "docusaurus-plugin-openapi-docs";
55

6+
const isCI = process.env.CI === 'true';
7+
68
const config: Config = {
79
title: 'OpenRemote Documentation',
810
tagline: 'The 100% Open Source IoT Platform for Manufacturers and Integrators',
@@ -42,7 +44,7 @@ const config: Config = {
4244
rspackBundler: true,
4345
rspackPersistentCache: true,
4446
mdxCrossCompilerCache: true,
45-
ssgWorkerThreads: true,
47+
ssgWorkerThreads: !isCI,
4648
},
4749
},
4850

0 commit comments

Comments
 (0)