Vite setup catalogue
This repository contains several example of Vite setups.
Info
None of these examples uses server.proxy
but it could be used to proxy some requests.
Setups
Basic
Most basic setup. Nothing special.
Middleware Mode
Using Vite with middleware mode.
Backend Server
Using Vite with a backend server. See Backend Integration Guide | Vite.
With Proxy
Using Vite behind a reverse proxy.
With Proxy (No WebSocket)
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.