Vite plugin to allow controlling the cloudflare tunnel thru exported functions #14428
alyyousuf7
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Vite CLI has an internal function to bind shortcuts. I understand that since it's not publicly documented, this plugin should not bind any hard-coded shortcut to the Vite CLI.
Having said that, if this plugin exports status/setup/destroy functions, people/teams that wants to take the risk of using those internal functions will be able to control the cloudflare tunnels thru their CLI.
A psuedo-code to give an idea:
Currently, we use
CF_TUNNELto control theenableflag in the Cloudflare tunnel plugin. That means, if the Vite dev server was turned on without it, we gotta close and start again with the flag on. And we don't want to unnecessarily start a Cloudflare tunnel when not needed - so havingenabled: truehard-coded for us is not good enough.Having the shortcut defined, the Vite CLI for us would be self-documenting about existence of Cloudflare tunnel support.
The ask here is not to support the shortcut itself - but making this plugin so that one can control the tunnel itself.
Beta Was this translation helpful? Give feedback.
All reactions