Skip to content

Commit 7d88d8e

Browse files
committed
build-frontend: drop --localize, drop en-US promotion step
We never translated any ordpool components and the locale switcher is hidden in the footer, so multi-locale builds produce 30+ duplicate bundles for nothing. Single-locale build is faster and the dist root ends up with index.html directly (no en-US/ subdir to promote).
1 parent 3170edf commit 7d88d8e

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/build-frontend.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@ jobs:
2525
working-directory: frontend
2626
run: npm ci
2727

28-
- name: Build (production, --localize)
28+
- name: Build (production, single English locale — we never translated ordpool components)
2929
working-directory: frontend
3030
run: npm run build
3131

32-
- name: Promote en-US to root (Pages serves the root)
33-
working-directory: frontend
34-
run: mv dist/mempool/browser/en-US/* dist/mempool/browser/
35-
3632
- name: Sanity-check the deploy artifact
3733
working-directory: frontend
3834
run: |

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"start:local-esplora": "npm run generate-themes && npm run generate-config && npm run sync-assets-dev && npm run ng -- serve -c local-esplora",
3333
"start:local-prod": "npm run generate-themes && npm run generate-config && npm run sync-assets-dev && npm run ng -- serve -c local-prod",
3434
"start:mixed": "npm run generate-themes && npm run generate-config && npm run sync-assets-dev && npm run ng -- serve -c mixed",
35-
"build": "npm run generate-themes && npm run generate-config && npm run ng -- build --configuration production --localize && npm run sync-assets-dev && npm run sync-assets",
35+
"build": "npm run generate-themes && npm run generate-config && npm run ng -- build --configuration production && npm run sync-assets-dev && npm run sync-assets",
3636
"generate-themes": "node generate-themes.js",
3737
"copy-themes": "node generate-themes.js copy",
3838
"sync-assets": "npm run copy-themes && rsync -av ./src/resources ./dist/mempool/browser && node sync-assets.js 'dist/mempool/browser/resources/'",

0 commit comments

Comments
 (0)