Choosing rewrite over pathRewrite in Vite Proxy: What about dynamic target resolution?
Context Vite’s dev‑server proxy accepts an object mapping request paths to options. The documented rewrite function transforms the incoming URL before forwarding, whereas the legacy pathRewrite option is no longer supported. In addition, the official docs only illustrate a static string for the target property, leaving the possibility of a dynamic target fun