-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add support for secured sites and browsersync to vite #307
Conversation
This looks cool. Love how it's optional. I'll give it a test run next Monday! |
I had BrowserSync running permanently yesterday. On the Mac I viewed the page via domain.test (valet and vite) and on the mobile via 192.168.178.93:3000 (Browsersync and vite). Everything worked fine in parallel. According to the documentation, they made sure that BrowserSync does not execute anything that Vite already does and it acts on Vite events. |
Maybe tinkering a bit more with the expose (valet share) approach could be a good alternative which does not add something on top. Not sure if i have time for that on monday. |
Not sure what you're talking about but but you can make this a draft PR. Let me know when you want me to take a look! |
No worries 😁 I was talking about expose (https://github.com/beyondcode/expose) which exposes local sites via secure tunnels (which then could be an alternative approach to Browsersync since that is available with valet anyway). I experimented a bit yesterday but had no luck with sharing a non-https site trough expose (opened an issue on their repo). So I'd leave it at Browsersync for now. If we come up with something better in the future, we can remove Browsersync again. I don't know if it makes sense to add the changes directly to the core, or if we'd rather create a section in the documentation for those who need it. So, please have a look at it now. |
Interesting. I had never heard of this tool. I just tried it and got it working. Then I tried it again with expose and (non https) I didn't get my styles and JS. |
However this is a free and working solution that doesn't require any account or payment so I'm happy to merge in the browsersync changes. Do you think you can work this in so forms work? #222 |
expose is very nice!
Will have a look as soon as I hit the forms part in my current project |
Got forms working via Browsersync on my iPhone in the network 🥳
Not sure if I truly get, what the intend for that PR was, but as far as I can tell he wanted Browsersync to open the valet domain instead of |
Cool stuff. I like the defaults btw. Seems good to me. |
Changes proposed in this pull request: