Skip to content

Commit f5fe4a1

Browse files
committed
attempt to use new cache and workers feature
1 parent 26d1e5b commit f5fe4a1

File tree

4 files changed

+1707
-2250
lines changed

4 files changed

+1707
-2250
lines changed

.github/workflows/deploy-web.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818

1919
- uses: actions/checkout@v4
2020

21-
# - name: Cache ~/.npm for npm ci
22-
# uses: actions/cache@v4
23-
# with:
24-
# path: ~/.npm
25-
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26-
# restore-keys: ${{ runner.os }}-node
21+
- name: Cache ~/.npm for npm ci
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: ${{ runner.os }}-node
2727

28-
# - uses: AmyrAhmady/[email protected]
28+
- uses: AmyrAhmady/[email protected]
2929

3030
- name: Build frontend
3131
run: |

frontend/docusaurus.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ const config: Config = {
2525
projectName: "web", // Usually your repo name.
2626

2727
future: {
28+
v4: {
29+
removeLegacyPostBuildHeadAttribute: true,
30+
useCssCascadeLayers: true,
31+
},
2832
experimental_faster: {
2933
swcJsLoader: true,
3034
swcJsMinimizer: true,
3135
swcHtmlMinimizer: true,
3236
lightningCssMinimizer: true,
3337
rspackBundler: true,
38+
rspackPersistentCache: true,
39+
ssgWorkerThreads: true,
3440
mdxCrossCompilerCache: true,
3541
},
3642
},

0 commit comments

Comments
 (0)