https://github.com/sapphi-red/vite-setup-catalogue
This repository contains several example of Vite setups.
https://github.com/sapphi-red/vite-setup-catalogue
vite
Last synced: about 2 months ago
JSON representation
This repository contains several example of Vite setups.
- Host: GitHub
- URL: https://github.com/sapphi-red/vite-setup-catalogue
- Owner: sapphi-red
- License: other
- Created: 2022-06-18T15:53:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T01:07:32.000Z (4 months ago)
- Last Synced: 2025-03-28T09:08:51.760Z (about 2 months ago)
- Topics: vite
- Language: TypeScript
- Homepage:
- Size: 407 KB
- Stars: 204
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Vite setup catalogue  
This repository contains several example of Vite setups.
## Info
None of these examples uses [`server.proxy`](https://vitejs.dev/config/#server-proxy) but it could be used to proxy some requests.

## Setups
### [Basic](https://github.com/sapphi-red/vite-setup-catalogue/tree/main/examples/basic)
Most basic setup. Nothing special.

### [Middleware Mode](https://github.com/sapphi-red/vite-setup-catalogue/tree/main/examples/middleware-mode)
Using Vite with [middleware mode](https://vitejs.dev/guide/ssr.html#setting-up-the-dev-server).

### [Backend Server](https://github.com/sapphi-red/vite-setup-catalogue/tree/main/examples/backend-server)
Using Vite with a backend server. See [Backend Integration Guide | Vite](https://vitejs.dev/guide/backend-integration.html).

### [With Proxy](https://github.com/sapphi-red/vite-setup-catalogue/tree/main/examples/with-proxy)
Using Vite behind a reverse proxy.

### [With Proxy (No WebSocket)](https://github.com/sapphi-red/vite-setup-catalogue/tree/main/examples/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](https://vitejs.dev/config/server-options.html#server-hmr).Using Vite behind a reverse proxy that does not support proxying websocket.
