This repository contains several example of Vite setups.
None of these examples uses server.proxy
but it could be used to proxy some requests.
Most basic setup. Nothing special.
Using Vite with middleware mode.
Using Vite with a backend server. See Backend Integration Guide | Vite.
Using Vite behind a reverse proxy.
Warning I recommend to use "With Proxy" setup if possible. It is more simple. This exists to showcase "Direct websocket connection fallback" feature.
Using Vite behind a reverse proxy that does not support proxying websocket.