From ade5bf537615ce630ee200d2934632a737a29ea3 Mon Sep 17 00:00:00 2001 From: cnbailian <594647004@qq.com> Date: Fri, 6 Mar 2026 13:39:28 +0800 Subject: [PATCH] feat: configure docs deployment to company Cloudflare with custom domain - Remove hardcoded account_id from wrangler.jsonc to support multi-account deployment via env var - Add repterm.ai as custom domain route in wrangler.jsonc - Add CLOUDFLARE_ACCOUNT_ID secret to deploy-docs workflow Co-Authored-By: Claude Haiku 4.5 --- .github/workflows/deploy-docs.yml | 1 + apps/docs/wrangler.jsonc | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index d3336ca..019e01a 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -30,3 +30,4 @@ jobs: run: bun run --cwd apps/docs deploy env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} diff --git a/apps/docs/wrangler.jsonc b/apps/docs/wrangler.jsonc index 0d5bd6f..fc4f358 100644 --- a/apps/docs/wrangler.jsonc +++ b/apps/docs/wrangler.jsonc @@ -1,7 +1,6 @@ { "$schema": "node_modules/wrangler/config-schema.json", "name": "repterm-docs", - "account_id": "6d7b0ffbd980de250cbff2e25503230d", "main": ".open-next/worker.js", "assets": { "binding": "ASSETS", @@ -11,5 +10,8 @@ "compatibility_flags": ["nodejs_compat"], "observability": { "enabled": true - } + }, + "routes": [ + { "pattern": "repterm.ai", "custom_domain": true } + ] }