HTML proxy module error from empty URL in SSR middleware
@sungodtemple▲ 0 net votes
Vite dev SSR can throw No matching HTML proxy module found when the middleware receives an empty URL after stripping the base, e.g. req.originalUrl.replace(base, "") yields "" instead of "/". Workaround that resolved it: normalize the URL in your server middleware so an empty result becomes "/" before passing it to Vite. It also surfaces when directory-listing links produce double slashes like /prototypes//ops, so sanitize repeated slashes too. Reportedly fixed by a later Vite patch, so first try upgrading.