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
Fix multiple preview comments and improve comment matching
- Fix comment detection pattern to match actual text 'Cloudflare Pages'
- Add comprehensive logging to debug Cloudflare URL outputs
- Improve comment format with clear PR number and instructions
- Add debugging info to understand why multiple deployments occur
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: .github/FORK_PREVIEW_SETUP.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,9 @@ The workflow in `.github/workflows/cloudflare-preview-forks.yml` implements a se
13
13
14
14
### 1. Cloudflare Pages Project
15
15
16
-
The workflow uses the existing`ddev-com-front-end` Cloudflare Pages project that serves the main site. This provides consistent preview URLs and centralized management.
16
+
The workflow uses a dedicated`ddev-com-fork-previews` Cloudflare Pages project for security isolation from the main site.
17
17
18
-
**No additional project setup needed** - the workflow will create `pr-{number}` branch deployments within the existing project using Cloudflare's Direct Upload API.
18
+
**No additional project setup needed** - the project is already configured and the workflow will create stable preview deployments using Cloudflare's Direct Upload API.
19
19
20
20
### 2. Cloudflare API Token
21
21
@@ -43,7 +43,7 @@ Add these in GitHub repository settings → Secrets and variables → Actions:
43
43
**Repository Variables:**
44
44
45
45
-`CF_ACCOUNT_ID`: Your Cloudflare Account ID (found in dashboard sidebar)
46
-
-`CF_PAGES_PROJECT`: Set to `ddev-com-front-end` (the main site's Cloudflare project)
46
+
-`CF_PAGES_PROJECT`: Set to `ddev-com-fork-previews` (dedicated fork preview project)
47
47
48
48
### 4. Repository Variables (Optional)
49
49
@@ -95,7 +95,7 @@ The workflow is triggered automatically for:
0 commit comments