You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change establishes clear separation between staging and production
deployments using different Cloudflare Pages branches and custom domains:
Changes:
- Update release-web.yml to deploy to 'release' branch (not 'main')
- Add preview.cambeerfestival.app to worker CORS origins
- Update documentation to reflect new architecture
Architecture:
- Production: cambeerfestival.app (CF Pages 'release' branch, deployed on git tags)
- Preview: preview.cambeerfestival.app (CF Pages 'main' branch, deployed on git main)
- PR Previews: <branch>.cambeerfestival.pages.dev (CF Pages '<branch>' branch)
Next step: Configure custom domains in Cloudflare Dashboard to point:
- cambeerfestival.app → release branch
- preview.cambeerfestival.app → main branch
| Push to `main`|`main`|`preview.cambeerfestival.app`| Staging |
23
+
| Version tag (e.g., `v2025.12.0`) |`release`|`cambeerfestival.app`| Production |
15
24
16
25
## Prerequisites
17
26
@@ -92,24 +101,46 @@ You can reuse the same token by adding Pages permissions to it:
92
101
93
102
**Note**: Using a single token with both Workers and Pages permissions is simpler and follows the principle of consolidating CI/CD credentials for the same application.
94
103
95
-
### 4. Configure Custom Domain
104
+
### 4. Configure Custom Domains
105
+
106
+
You need to set up **two custom domains** pointing to different Cloudflare Pages branches:
107
+
108
+
#### 4a. Production Domain (cambeerfestival.app)
96
109
97
110
1. In Cloudflare Dashboard, go to **Workers & Pages** → **Pages**
98
111
2. Select your `cambeerfestival` project
99
112
3. Go to **Custom domains** tab
100
113
4. Click **Set up a custom domain**
101
114
5. Enter: `cambeerfestival.app`
102
-
6. Click **Continue**
103
-
7. Cloudflare will automatically configure the DNS records
104
-
8. Optionally add `www.cambeerfestival.app` as well
0 commit comments