Skip to content

Commit

Permalink
Use Cached Endpoints
Browse files Browse the repository at this point in the history
This change updated the LiveAPI endpoints that search-core provides
so that it provides the cached version of the endpoints. Using the
cached endpoints helps improve performance.

J=WAT-4442
TEST=manual

Built test site with new change, saw that the cached endpoints
were being used.
  • Loading branch information
mkouzel-yext committed Nov 12, 2024
1 parent b992695 commit c71d1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/provideEndpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export class EndpointsFactory {
getDomain() {
switch (this.cloudChoice){
case CloudChoice.GLOBAL_GCP:
return `https://${this.environment}-cdn-gcp.${this.cloudRegion}.yextapis.com`;
return `https://${this.environment}-cdn-cached-gcp.${this.cloudRegion}.yextapis.com`;
case CloudChoice.GLOBAL_MULTI:
default:
return `https://${this.environment}-cdn.${this.cloudRegion}.yextapis.com`;
return `https://${this.environment}-cdn-cached.${this.cloudRegion}.yextapis.com`;
}
}

Expand Down

0 comments on commit c71d1f1

Please sign in to comment.