Skip to content

Commit b178977

Browse files
committed
feat: add Cloudflare route and observability configuration
1 parent 49ae614 commit b178977

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/deploy.yml

+7
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ jobs:
5656
- name: 📥 Download deps
5757
run: bun install
5858

59+
- name: 🔄 Replace zone_id placeholder
60+
if: ${{ github.ref == 'refs/heads/main' }}
61+
run: |
62+
sed -i "s/__ZONE_ID__/${CLOUDFLARE_ZONE_ID}/g" wrangler.jsonc
63+
env:
64+
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
65+
5966
- name: 🔒 Set Worker Secrets
6067
if: ${{ github.ref == 'refs/heads/main' }}
6168
run: |

wrangler.jsonc

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
"SENTRY_DSN": ""
2222
}
2323
}
24+
},
25+
"routes": [
26+
{
27+
"pattern": "arpit.im/*",
28+
"zone_id": "__ZONE_ID__"
29+
}
30+
],
31+
"observability": {
32+
"enabled": true,
33+
"head_sampling_rate": 1
2434
}
2535
// "kv_namespaces": [
2636
// {

0 commit comments

Comments
 (0)