From edc89c4a12875c5dc229353e52785d598a7beb8d Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Sun, 2 Nov 2025 20:33:55 -0500 Subject: [PATCH] fix(ci): add wrangler config and upgrade to v4.45.3 - Add wrangler.toml with compatibility_date to fix CI deployment - Upgrade Wrangler from v3.90.0 to v4.45.3 - Simplify deploy command to use config file - Add wrangler.toml to workflow trigger paths Fixes CloudFlare Worker deployment failure due to missing compatibility_date parameter. --- .github/workflows/deploy-ccs-worker.yml | 4 +++- scripts/wrangler.toml | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 scripts/wrangler.toml diff --git a/.github/workflows/deploy-ccs-worker.yml b/.github/workflows/deploy-ccs-worker.yml index 460a56f3..a2e58204 100644 --- a/.github/workflows/deploy-ccs-worker.yml +++ b/.github/workflows/deploy-ccs-worker.yml @@ -5,6 +5,7 @@ on: branches: [main] paths: - 'scripts/worker.js' + - 'scripts/wrangler.toml' - 'installers/**' # Allow manual trigger @@ -25,4 +26,5 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} workingDirectory: scripts - command: deploy worker.js --name ccs-installer + wranglerVersion: "4.45.3" + command: deploy diff --git a/scripts/wrangler.toml b/scripts/wrangler.toml new file mode 100644 index 00000000..93cc9bf7 --- /dev/null +++ b/scripts/wrangler.toml @@ -0,0 +1,7 @@ +name = "ccs-installer" +main = "worker.js" +compatibility_date = "2025-11-02" +workers_dev = true + +# CloudFlare Worker configuration for CCS installer +# This worker serves platform-specific installation scripts