Skip to content

Commit ade5bf5

Browse files
cnbailianclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 080866d commit ade5bf5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ jobs:
3030
run: bun run --cwd apps/docs deploy
3131
env:
3232
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
33+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

apps/docs/wrangler.jsonc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "node_modules/wrangler/config-schema.json",
33
"name": "repterm-docs",
4-
"account_id": "6d7b0ffbd980de250cbff2e25503230d",
54
"main": ".open-next/worker.js",
65
"assets": {
76
"binding": "ASSETS",
@@ -11,5 +10,8 @@
1110
"compatibility_flags": ["nodejs_compat"],
1211
"observability": {
1312
"enabled": true
14-
}
13+
},
14+
"routes": [
15+
{ "pattern": "repterm.ai", "custom_domain": true }
16+
]
1517
}

0 commit comments

Comments
 (0)