fix: set empty VITE_API_BASE_URL_BACKEND and add HTTPS origin to CORS
External browsers were hitting localhost:5000 instead of going through nginx. VITE_API_BASE_URL_BACKEND is now empty so all API calls use relative /api/ paths that nginx proxies to the backend. Also adds https://communitydentistsoflowell.mydentalofficemanagement.com to FRONTEND_URLS for CORS. Updated .env.example to match so setup from template doesn't silently revert this fix. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
NODE_ENV="development"
|
NODE_ENV="development"
|
||||||
HOST=0.0.0.0
|
HOST=0.0.0.0
|
||||||
PORT=5000
|
PORT=5000
|
||||||
FRONTEND_URLS=http://localhost:3000
|
FRONTEND_URLS=http://localhost:3000,http://communitydentistsoflowell.mydentalofficemanagement.com,https://communitydentistsoflowell.mydentalofficemanagement.com
|
||||||
SELENIUM_AGENT_BASE_URL=http://localhost:5002
|
SELENIUM_AGENT_BASE_URL=http://localhost:5002
|
||||||
JWT_SECRET = 'dentalsecret'
|
JWT_SECRET = 'dentalsecret'
|
||||||
DB_HOST=localhost
|
DB_HOST=localhost
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
HOST=0.0.0.0
|
HOST=0.0.0.0
|
||||||
PORT=3000
|
PORT=3000
|
||||||
VITE_API_BASE_URL_BACKEND=http://localhost:5000
|
VITE_API_BASE_URL_BACKEND=
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
HOST=0.0.0.0
|
HOST=0.0.0.0
|
||||||
PORT=3000
|
PORT=3000
|
||||||
VITE_API_BASE_URL_BACKEND=http://localhost:5000
|
VITE_API_BASE_URL_BACKEND=
|
||||||
Reference in New Issue
Block a user