Skip to content

Commit ddf18ef

Browse files
committed
pacify prettier
1 parent c1a1653 commit ddf18ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/FORK_PREVIEW_SETUP.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,16 @@ To test the workflow:
161161
## Known Issues & Future Improvements
162162

163163
### URL Stability Problem
164+
164165
Currently, Cloudflare's Direct Upload API creates a new deployment hash with each push, resulting in changing preview URLs like:
166+
165167
- First push: `https://2e1a74f4.ddev-com-fork-previews.pages.dev`
166168
- Second push: `https://e98fa6ff.ddev-com-fork-previews.pages.dev`
167169

168170
This breaks the ability to bookmark or share stable preview URLs for review purposes.
169171

170172
**Potential Solutions to Investigate:**
173+
171174
1. **Force predictable branch naming**: Try using branch names like `pr${{ github.event.pull_request.number }}` and construct expected URLs manually
172175
2. **Track and reuse first URL**: Store the initial deployment URL and attempt to update the same deployment rather than creating new ones
173176
3. **Use Cloudflare API directly**: Bypass the GitHub action and use Wrangler CLI or direct API calls for more control over deployment naming

0 commit comments

Comments
 (0)