Skip to content
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

[v2] DevServer improvements and fixes #2664

Merged
merged 4 commits into from
May 16, 2023
Merged

Conversation

stffabi
Copy link
Collaborator

@stffabi stffabi commented May 15, 2023

DevServer improvements and fixes

Fixes #2661
Fixes #2667

@stffabi stffabi requested a review from leaanthony May 15, 2023 06:54
@stffabi stffabi changed the title [v2] Fix devserver fote Vite >= 3.0.0 on linux and fix segfaults on darwin [v2] Fix devserver for Vite >= 3.0.0 on linux and fix segfaults on darwin May 15, 2023
@stffabi stffabi changed the title [v2] Fix devserver for Vite >= 3.0.0 on linux and fix segfaults on darwin [v2] DevServer improvements and fixes May 15, 2023
…versions to support proxying requests to other servers

This fixes the devserver on v2 for newer vite versions that use the custom
scheme.
… them by removing cache related headers in the request.
…or all Vite versions.

Prevent missing reload after fast multiple savings on Linux and Windows.
@stffabi stffabi force-pushed the bugfix/linux-fake-requestheaders branch from 0e133f2 to 3850a4f Compare May 15, 2023 19:15
@stffabi stffabi merged commit 4964619 into master May 16, 2023
3 checks passed
@stffabi stffabi deleted the bugfix/linux-fake-requestheaders branch May 16, 2023 07:35
misitebao pushed a commit that referenced this pull request May 27, 2023
* [assetserver, darwin] Fix copying request headers by using strdup

* [assetserver, linux] Fake some basic http headers for legacy webkit2 versions to support proxying requests to other servers

This fixes the devserver on v2 for newer vite versions that use the custom
scheme.

* [v2, windows] 304 responses are going to hang the WebView2 so prevent them by removing cache related headers in the request.

* [v2, dev] Now uses the custom schemes `wails://` on macOS and Linux for all Vite versions.

Prevent missing reload after fast multiple savings on Linux and Windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebSocket Connection Failed after Update to V2.5.0 index.html not found Please try reloading the page
2 participants