Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support version preview urls in Cloudflare workers #302

Open
Phoenixmatrix opened this issue Oct 15, 2024 · 2 comments
Open

Support version preview urls in Cloudflare workers #302

Phoenixmatrix opened this issue Oct 15, 2024 · 2 comments

Comments

@Phoenixmatrix
Copy link

Phoenixmatrix commented Oct 15, 2024

Cloudflare Workers now support preview urls similar to Cloudflare Pages. Unfortunately wrangler's output for those is slightly different than the output from Pages, so the regex doesn't catch it to store in deployment-url.

Example of Wrangler's output:

Version Preview URL: https://an21s8iyi-worker-test.mydomain.workers.dev/

Without that, it's difficult to get access to the url in a version preview (it's available in the output, but its tough to capture it to use elsewhere in my GitHub action).

@nprogers
Copy link

nprogers commented Nov 12, 2024

We can pull this from wrangler artifacts.
cloudflare/workers-sdk#7240

@jahands
Copy link
Contributor

jahands commented Nov 18, 2024

Blocked on cloudflare/workers-sdk#7240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants