From 1edf73c4cc6c3be341417a7518c5c84f0d8ca334 Mon Sep 17 00:00:00 2001 From: Vindex Date: Tue, 26 Nov 2024 18:30:05 +0100 Subject: [PATCH] Precision on on how to run vite. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fcbaddf..17875b9 100644 --- a/README.md +++ b/README.md @@ -56,11 +56,11 @@ To avoid rebuilding frontend and backend every time you make a change, you can r development server in the `frontend` directory: ``` -pnpm vite +pnpm vite --host ``` Vite starts a development server on `http://localhost:5173` and proxies requests to the backend server -on `http://localhost:8080`. +on `http://localhost:8080`. "--host" is required so that it's accessible outside of container. It watches for changes in the `frontend` directory and reloads the browser automatically with HMR.