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

fix: wait for restart behind reverse-proxy #17768

Closed
wants to merge 3 commits into from
Closed

Conversation

nitedani
Copy link

@nitedani nitedani commented Jul 26, 2024

Description

When behind a reverse-proxy, the ping loop returns too early, because reverse-proxies usually respond with 502 when the host is unreachable.

Before the fix: on vite server restart, the browser shows a 502 blank page
After the fix: the browser waits until vite is restarted behind a reverse-proxy

Copy link

stackblitz bot commented Jul 26, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@hi-ogawa
Copy link
Collaborator

I think this is to solve #13125 but as mentioned in #13125 (comment) more robust fix is suggested here #5675 (comment).

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.

2 participants