Disable touch drag & drop, warn on car delete with reservations, configure backend URL
Co-authored-by: pdf114514 <57948770+pdf114514@users.noreply.github.com> Agent-Logs-Url: https://github.com/pdf114514/CarReservation/sessions/cd194ca1-b339-4f2f-b717-31a0ba193964
This commit is contained in:
21
README.md
21
README.md
@@ -51,6 +51,27 @@ npm run dev
|
||||
|
||||
Open http://localhost:5173 in your browser.
|
||||
|
||||
### Configuration
|
||||
|
||||
#### Backend URL (development proxy)
|
||||
|
||||
By default the Vite dev server proxies `/api` requests to `http://localhost:3001`.
|
||||
To point to a different backend server, set the `BACKEND_URL` environment variable when starting the frontend:
|
||||
|
||||
```bash
|
||||
BACKEND_URL=http://192.168.1.10:3001 npm run dev:frontend
|
||||
```
|
||||
|
||||
#### Backend URL (production build)
|
||||
|
||||
When the frontend is deployed separately from the backend, set `VITE_API_BASE_URL` to the backend server's origin before building:
|
||||
|
||||
```bash
|
||||
VITE_API_BASE_URL=https://api.example.com npm run build
|
||||
```
|
||||
|
||||
This makes the built frontend send API requests to `https://api.example.com/api`.
|
||||
|
||||
### API Endpoints
|
||||
|
||||
| Method | Path | Description |
|
||||
|
||||
Reference in New Issue
Block a user