File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/serviceSearchClient/src Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121121 REGRESSION_TESTS_PEM : ${{ secrets.REGRESSION_TESTS_PEM }}
122122 CLOUD_FORMATION_DEPLOY_ROLE : ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }}
123123 TARGET_SPINE_SERVER : ${{ secrets.DEV_TARGET_SPINE_SERVER }}
124- TARGET_SERVICE_SEARCH_SERVER : ${{ secrets.DEV_TARGET_SERVICE_SEARCH_SERVER }}
124+ TARGET_SERVICE_SEARCH_SERVER : ${{ secrets.DEV_TARGET_SERVICE_SEARCH_v3_SERVER }}
125125
126126 release_sandbox_code :
127127 needs : [get_issue_number, package_code, get_commit_id]
Original file line number Diff line number Diff line change @@ -164,6 +164,12 @@ export class LiveServiceSearchClient implements ServiceSearchClient {
164164 }
165165
166166 private getServiceSearchEndpoint ( ) {
167- return `${ this . SERVICE_SEARCH_URL_SCHEME } ://${ this . SERVICE_SEARCH_ENDPOINT } /service-search`
167+ const baseUrl = `${ this . SERVICE_SEARCH_URL_SCHEME } ://${ this . SERVICE_SEARCH_ENDPOINT } `
168+ if ( this . SERVICE_SEARCH_ENDPOINT ?. toLowerCase ( ) . includes ( "api.service.nhs.uk" ) ) {
169+ // service search v3
170+ return `${ baseUrl } /service-search-api/`
171+ }
172+ // service search v2
173+ return `${ baseUrl } /service-search`
168174 }
169175}
You can’t perform that action at this time.
0 commit comments