From 0299d90657939cebc8328e82ade9d3a3bab5405d Mon Sep 17 00:00:00 2001 From: Karishma Shukla Date: Tue, 3 Dec 2024 23:56:09 +0530 Subject: [PATCH 1/2] feat: add VITE_PUBLIC_URL variable --- ENVEXAMPLE | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ENVEXAMPLE b/ENVEXAMPLE index 0153f820..3de361d6 100644 --- a/ENVEXAMPLE +++ b/ENVEXAMPLE @@ -17,7 +17,9 @@ REDIS_PORT=6379 # Redis port (default: 6379) # Backend and Frontend URLs BACKEND_URL=http://localhost:8080 # URL on which the backend runs. You can change it based on your needs. VITE_BACKEND_URL=http://localhost:8080 # URL used by frontend to connect to backend. It should always have the same value as BACKEND_URL -PUBLIC_URL=http://localhost:5173 # URL used by backend to connect to frontend. You can change it based on your needs. + +PUBLIC_URL=http://localhost:5173 # URL on which the frontend runs. You can change it based on your needs. +VITE_PUBLIC_URL=http://localhost:5173 # URL used by backend to connect to frontend. It should always have the same value as PUBLIC_URL # Optional Google OAuth settings for Google Sheet Integration GOOGLE_CLIENT_ID=your_google_client_id From 4ba9a08973684432e34728d2d200f579a502eec5 Mon Sep 17 00:00:00 2001 From: Karishma Shukla Date: Tue, 3 Dec 2024 23:58:09 +0530 Subject: [PATCH 2/2] docs: VITE_PUBLIC_URL & PUBLIC_URL --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index dd562422..b0f44e08 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ You can access the frontend at http://localhost:5173/ and backend at http://loca |-----------------------|-----------|----------------------------------------------------------------------------------------------|--------------------------------------------------------------| | `BACKEND_URL` | Yes | URL to run backend on. | Default value: http://localhost:8080 | | `VITE_BACKEND_URL` | Yes | URL used by frontend to connect to backend | Default value: http://localhost:8080 | +| `PUBLIC_URL` | Yes | URL to run frontend on. | Default value: http://localhost:5173 | +| `VITE_PUBLIC_URL` | Yes | URL used by backend to connect to frontend | Default value: http://localhost:5173 | | `JWT_SECRET` | Yes | Secret key used to sign and verify JSON Web Tokens (JWTs) for authentication. | JWT authentication will not work. | | `DB_NAME` | Yes | Name of the Postgres database to connect to. | Database connection will fail. | | `DB_USER` | Yes | Username for Postgres database authentication. | Database connection will fail. |