Open sastan opened 1 year ago
This won't always work. Ideally, we just remove the race condition instead or have it exposed regardless. I'll leave this open for now
++ to fixing this - we use direct uploads & pass a branch name, resulting in url === alias
on most runs
I'll just hardcode the url myself for now... https://${{ steps.branch-name.outputs.current_branch }}.${{ env.CF_PROJECT_SLUG }}.pages.dev/
ah, hardcoding has some caveats since. it needs to be url encoded somehow + cf truncates branch names in the subdomain
Would it be possible to pass the alias instead?
This PR ensures to always set the alias url output to point to the branch url by replacing the hash in the deployment url with the branch name.