Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit cad2ec5

Browse files
Hotfix: Reduce build time by explicitly ignoring versions
1 parent 3bc9c54 commit cad2ec5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/compile/ContentTree.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ class ContentTree {
5252
build() {
5353
const contentTree = dirTree(
5454
this.rootPath,
55-
{ extensions: /\.(md|mdx|json)$/ },
55+
{
56+
extensions: /\.(md|mdx|json)$/,
57+
58+
// TEMPORARY HACK to eliminate memory error in builds
59+
exclude: /v0\.1\.0|v0\.1\.1|v0\.1\.2|v0\.1\.3|v0\.2\.0|v0\.2\.1|v0\.2\.2|v0\.2\.3|v0\.2\.4/,
60+
},
5661
(item) => {
5762
if (
5863
path.basename(item.path).endsWith(".meta.json") ||

0 commit comments

Comments
 (0)