Import of @vite-plugin-checker-runtime
does not respect base
, resulting in requests to invalid URL
#135
Closed
2 tasks done
Labels
bug
Something isn't working
Describe the bug
I proxy my vite dev server through an ASP.NET Core application in order to mimic how the app will behave in production.
In order to do this, I set a
base
invite.config.ts
of/vite_hmr/
when in serve mode, and then use this path to determine which requests need to be proxied from ASP.NET Core to vite. However, the injected@vite-plugin-checker-runtime
does not respect this setting, resulting in the request getting past the proxy middleware and hitting my SPA fallback endpoint, which serves HTML.Reproduction
base
invite.config.ts
to any path other than/
.@vite-plugin-checker-runtime
is not requested from that path, but always from the root (/
).Expected behavior
The import of the
@vite-plugin-checker-runtime
script respects the configured value ofbase
.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: