Skip to content

Commit 4ef6cfc

Browse files
committed
Only transpile codeblocks in CI
1 parent 938a43d commit 4ef6cfc

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

website/docusaurus.config.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,19 @@ const config: Config = {
3535
},
3636
},
3737
],
38-
[
39-
transpileCodeblocks,
40-
{
41-
compilerSettings: {
42-
tsconfig: resolve(__dirname, '../docs/tsconfig.json'),
43-
externalResolutions: {},
44-
},
45-
},
46-
],
47-
],
38+
// Only transpile codeblocks in CI, as it's slow
39+
process.env.CI
40+
? [
41+
transpileCodeblocks,
42+
{
43+
compilerSettings: {
44+
tsconfig: resolve(__dirname, '../docs/tsconfig.json'),
45+
externalResolutions: {},
46+
},
47+
},
48+
]
49+
: null,
50+
].filter(Boolean),
4851
},
4952
theme: {
5053
customCss: require.resolve('./src/css/custom.css'),

0 commit comments

Comments
 (0)