Support version preview urls in Cloudflare workers
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).
We can pull this from wrangler artifacts. https://github.com/cloudflare/workers-sdk/issues/7240
Blocked on https://github.com/cloudflare/workers-sdk/issues/7240
btw it seems like preview urls are not correctly disabled on deploy even though I've specified workers_dev = false as described here in the docs: preview url docs It only disables the worker.dev url, not the preview url. I'm not sure where to report this.
btw it seems like preview urls are not correctly disabled on deploy even though I've specified workers_dev = false as described here in the docs: preview url docs It only disables the worker.dev url, not the preview url. I'm not sure where to report this.
Also met the problem here.
https://github.com/cloudflare/workers-sdk/pull/7243 has been merged, isn't it time to unlock this one?
Any updates on this issue? Would love this feature!
Any updates on this issue? Would love this feature!
@RowenTey I am sure this issue has been solved, and the document has been updated.
Any updates on this issue? Would love this feature!
@RowenTey I am sure this issue has been solved, and the document has been updated.
https://developers.cloudflare.com/workers/configuration/previews/#disabling-preview-urls-in-the-wrangler-configuration-file
Yep sorry, just tested it out and got it to work!
The original issue is still relevant, is there any progress? It would be great to have this to have previews for workers
@nprogers @jahands I would truly appreciate any update on this issue 💯