Skip to content

Commit 74394fa

Browse files
committed
build: add build:web script + pin Node for Cloudflare web deploy
clients/web imports @cumulusvpn/core via workspace:* (its built dist), so the web build must build core first. Root `yarn build` can't be used by Cloudflare because `foreach` also builds the desktop (Tauri/Rust) workspace, which fails in a JS build image. Add `build:web` (core → web only) as the Cloudflare build command, and pin Node 22 (.node-version) so the build image matches Vite 8's requirement.
1 parent 846ed74 commit 74394fa

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
],
1212
"scripts": {
1313
"build": "yarn workspaces foreach -Apt run build",
14+
"build:web": "yarn workspace @cumulusvpn/core run build && yarn workspace @cumulusvpn/web run build",
1415
"typecheck": "yarn workspaces foreach -Apt run typecheck",
1516
"test": "yarn workspaces foreach -Apt run test",
1617
"lint": "yarn workspaces foreach -Apt run lint",

0 commit comments

Comments
 (0)