Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

[dev] when host set to localhost, spin up trycloudflared endpoint #901

Closed
EverlastingBugstopper opened this issue Nov 22, 2019 · 3 comments
Labels
dev `wrangler dev` feature Feature requests and suggestions

Comments

@EverlastingBugstopper
Copy link
Contributor

devs should be able to test workers on something that runs on their local machine, let's use trycloudflared

@EverlastingBugstopper EverlastingBugstopper added the feature Feature requests and suggestions label Nov 22, 2019
@EverlastingBugstopper EverlastingBugstopper added this to the dev server milestone Nov 22, 2019
@GregBrimble
Copy link
Member

If it's any help, I have a complete example of using cloudflared with wrangler dev which automatically pulls in the tunnel host.

Specifically, index.js is the most interesting bit: it starts the cloudflared tunnel, inspects the Prometheus metrics endpoint and grabs the hostname, and then starts the wrangler dev --host ${hostname} process.

@stale
Copy link

stale bot commented Jun 18, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Sep 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dev `wrangler dev` feature Feature requests and suggestions
Projects
None yet
Development

No branches or pull requests

3 participants