-
Notifications
You must be signed in to change notification settings - Fork 259
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
feat: use request host for hot-reload instead of window.location.host
#500
Conversation
8c92ebc
to
490a752
Compare
window.location.host
window.location.host
490a752
to
e09c128
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is going to need rebasing / updating. Also, while you are at it, do you mind elaborating a bit on what this solves and why this might be needed? Also, very importantly, I acknowledge that this may fix an issue for you, but will this break other users?
For tauri on mobile, due to some limitations, the webview can't access With this change, we modify the HTML on the fly before serving it based on the incoming request URL, so if we have trunk configured to listen on I don't think this will break for other users but in our fields you can never be so sure, however, for |
Is there anything I can do to push this and the related PR forward? It would be great for tauri users to have these features merged in this project so they wouldn't have to use my fork. And I apologize if this sounds rude or impatient on my part, I appreciate your hard work and I am not trying to put more work on your plate. |
I cherry-picked this into |
It's released as part of |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR was closed because it has been stalled for 10 days with no activity. |
damn, forgot to comment to keep this PR open, I would still like to see this PR land if possible |
Referencing #625 here as well |
This should come back to trunk with #623 |
closing as this has been superseded by #623 |
Checklist
site
content with pertinent info (may not always apply).This is a continuation of #494, when using tauri on mobile, we proxy the requests and the files are served using a custom protocol
https://tauri.localhost
sowindow.location.host
will betauri.localhost
and the hot-reload socket won't connect. To fix this, trunk will hard-code the address inside the auto-reload script.