Skip to content

[upstream #4793] feat(dashboard): Add configurable Vite dev server timeout and force proxy options - #32

Open
ayim wants to merge 2 commits into
masterfrom
mirror/upstream-4793
Open

[upstream #4793] feat(dashboard): Add configurable Vite dev server timeout and force proxy options#32
ayim wants to merge 2 commits into
masterfrom
mirror/upstream-4793

Conversation

@ayim

@ayim ayim commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Mirrored from vendurehq#4793 for the Overwatch review demo.

Original author: @taxilian


Adds two new options to DashboardPluginOptions:

  • viteDevServerTimeout (default: 1000) — Configurable timeout in milliseconds for detecting a running Vite dev server. Useful for slow or proxied connections (e.g. VPN) where the default 1s timeout is insufficient.
  • viteDevServerForceProxy (default: false) — When true, skips Vite dev server detection entirely and always proxies requests to it. Eliminates per-request latency overhead when you know Vite is running.

Both options are backward-compatible and default to existing behavior.


Context:

My frontend is a static site built using hugo; to avoid complications with CORS and cookies, I have it all on the same hostname. When developing, I use a proxy similar to ngrok (internal kubernetes black magic) to allow me to access everything over https on a dev domain.

The issue with this is that the default 1000ms vite check timeout periodically fails, likely due to the latency of going to the proxy, through the vpn, and to my laptop when I'm on some arbitrary connection somewhere. Thus, while I'm troubleshooting dashboard updates I keep getting the "vite isn't running" page. I wanted the option to disable that check when in dev mode, and I believe this should provide that. If I'm missing something obvious let me know =]


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

taxilian added 2 commits May 27, 2026 16:53
…roxy options

Adds two new options to DashboardPluginOptions:
- viteDevServerTimeout: Configurable timeout for detecting Vite dev server
- viteDevServerForceProxy: Skip detection and always proxy to Vite

This helps users with slow or proxied connections (e.g. VPN) who
experience timeouts with the default 1000ms detection timeout.
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