-
Notifications
You must be signed in to change notification settings - Fork 337
give option to not open browser when previewing #256
Comments
#252 is in progress and adds |
Thanks, this fixes the work around mentioned at the end, but does not help with the original request. Terminal only previews/development would be wonderful. |
@samuelcolvin i think adding a flag would you be interested in submitting a PR? if not i think this is achievable for an upcoming release :) |
How many of the features above should I'm guessing that just not opening the browser would be a good start? Showing request and response headers wouldn't be that hard (though you could go a lot further and highlight the body etc.), the real bulk of the work would be on printing the console log. |
i would imagine that this would be for preview and would encompass the http request commands we currently support, get (default), and post. i think we should definitely add headers to the console output as well! this could be a separate PR tho, if we wanted to keep them small (though i'd be happy with either). |
Okay, I'll try and work on it when I get a chance, but feel free for anyone to take over if I don't get around to it. |
I like this approach, and I would argue that NOT opening the browser should be the default, but maybe that's just me. I'd rather have Any movement on this? |
been too busy to work on this, that's not going to change too soon. I suspect that while many of us would prefer not to open a browser it will be hard to persuade cf to change the default. |
In a similar (and potentially off-topic, sorry) experience, I'm running I'm interested to know if the URL for the current instance of |
hey! we actually are prioritizing this work this quarter, and hope to implement a terminal only preview, a la "wrangler cURL", and parameterize the option of opening the browser cc @samuelcolvin |
Thanks for the cc, afraid I haven't been working on cf workers recently so unlikely I'll be able to help implement this. |
it's all good! @EverlastingBugstopper is going to be focusing on it :) if you have any suggestions or thoughts, feel free to share! |
My main point would be that a websocket connection and worker console log in the terminal as demonstrated by my gist above would make a massive different for those of us fond of using the terminal.
|
thank you for sharing @samuelcolvin ! |
@ashleygwilliams Do you know if the URL for the current instance of |
Hi, great talk last Tuesday at cloudflare connect in London on workers and rust.
Wrangler looks awesome, building and testing workers looks like it's got a lot nicer in the last 6 months.
Would be great if I could preview workers without having to open a browser (or have one opened for me) for every preview.
A few things that would make this possible:
wrangler preview
(obviously)There's a gist here (old and ugly code, sorry) that demonstrates much of what I'm asking for.
Failing all this, one step would be to reuse the same browser tab for each preview so I don't end up with 50 old cloudflare worker tabs, although maybe that's a limitation of chrome?
The text was updated successfully, but these errors were encountered: