Skip to content

Commit

Permalink
Merge pull request #212 from NYPL/feature/DR-3237/update-links-for-re…
Browse files Browse the repository at this point in the history
…verse-proxy

update links for reverse proxy
  • Loading branch information
avertrees authored Oct 17, 2024
2 parents 40743fa + 86f94f0 commit dfe3051
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Updated
- update links in QA to point internally for reverse proxy (DR-3237)

## [0.1.15] 2024-10-10
### Updated
Expand Down
2 changes: 1 addition & 1 deletion app/src/models/collectionCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class CollectionCardModel {
this.uuid = data.uuid;
this.title = data.title;
this.url =
process.env.APP_ENV === "development"
process.env.APP_ENV === "development" || process.env.APP_ENV === "qa"
? `/collections/${stringToSlug(data.title)}`
: data.url;
this.imageID = data.image_id || data.imageID;
Expand Down
2 changes: 1 addition & 1 deletion app/src/models/itemCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class ItemCardModel {
this.uuid = data.uuid;
this.title = data.title;
this.url =
process.env.APP_ENV === "development"
process.env.APP_ENV === "development" || process.env.APP_ENV === "qa"
? `/items/${data.uuid}`
: data.href || data.url;
this.imageID = data.imageID;
Expand Down
2 changes: 1 addition & 1 deletion appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const appConfig = {
environment: process.env.APP_ENV || "development",
DC_URL: {
development: "",
qa: "https://digitalcollections.nypl.org",
qa: "",
production: "https://digitalcollections.nypl.org",
},
IIIF_URL: {
Expand Down

0 comments on commit dfe3051

Please sign in to comment.