Skip to content

Commit 10ca391

Browse files
authored
docs: switch to @docusaurus/faster (#717)
Switching to SWC from `babel` seems to fix the crashing API documentation issue closes apify/apify-docs#1686
1 parent e7feda7 commit 10ca391

File tree

3 files changed

+979
-6
lines changed

3 files changed

+979
-6
lines changed

website/docusaurus.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@ module.exports = {
1616
favicon: 'img/favicon.ico',
1717
onBrokenLinks: /** @type {import('@docusaurus/types').ReportingSeverity} */ ('throw'),
1818
onBrokenMarkdownLinks: /** @type {import('@docusaurus/types').ReportingSeverity} */ ('throw'),
19+
future: {
20+
experimental_faster: {
21+
// ssgWorkerThreads: true,
22+
swcJsLoader: true,
23+
swcJsMinimizer: true,
24+
swcHtmlMinimizer: true,
25+
lightningCssMinimizer: true,
26+
rspackBundler: true,
27+
mdxCrossCompilerCache: true,
28+
rspackPersistentCache: true,
29+
},
30+
v4: {
31+
removeLegacyPostBuildHeadAttribute: true,
32+
useCssCascadeLayers: false,
33+
},
34+
},
1935
themes: [
2036
[
2137
'@apify/docs-theme',

0 commit comments

Comments
 (0)