fix(parapharmacy-api): use CORS_ORIGIN env var for Swagger server URL
Run Tests on Branches / Detect Changes (push) Successful in 13s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Has been skipped
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
Run Tests on Branches / Parapharmacy API Tests (push) Failing after 7s
Run Tests on Branches / Detect Changes (push) Successful in 13s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Has been skipped
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
Run Tests on Branches / Parapharmacy API Tests (push) Failing after 7s
Swagger UI hardcoded localhost:3002, causing NetworkError when accessed from the deployed server. Now reads CORS_ORIGIN to build the correct server URL for API calls from the Swagger UI.
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ services:
|
||||
PORT: "3002"
|
||||
NODE_ENV: production
|
||||
MONGODB_URI: mongodb://mongodb:27017/parapharmacy
|
||||
CORS_ORIGIN: http://localhost:4000
|
||||
CORS_ORIGIN: ${PARAPHARMACY_CORS_ORIGIN:-http://localhost:4000}
|
||||
depends_on:
|
||||
- mongodb
|
||||
|
||||
|
||||
Reference in New Issue
Block a user