Automatic reload causes webview to be unusable

Problem description:
Webview will reload anytime a change happens with the ports. This is often undesirable.

We can disable auto-opening on per account… but not auto-reload.

Expected behavior:
WebView should reload when we want to. Most frameworks like vite come with live reloading built in, if you wanted it. Doing nothing should be the default, if there is “magic” getting in the way, it should at least be optional.

Actual behavior:
Unable to use WebView, devtools become unclickable.

Steps to reproduce:
Have a server that reopens the port frequently

Bug appears at this link:

In a new tab the content is served perfectly fine and no reloads happen:

1 Like

I managed to arrest this issue by capturing control + C / sigkill and dropping into a bash --norc shell. Forcing replit to think my server is trying to run. This can be a bit dangerous on public Repls with secrets, once you’ve ran a web server security settings should be fine, but it’s not a guarantee.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.