Skip to content

Commit

Permalink
Debugging and setting more env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinGuzman committed Sep 20, 2024
1 parent b937ee8 commit b2c9395
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: npm run test
publish_qa:
# needs: test
if: github.ref == 'refs/heads/qa'
if: github.ref == 'refs/heads/TGR-50/remediation-update'
name: Publish image to ECR and update ECS stack
runs-on: ubuntu-latest
permissions:
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ARG NYPL_HEADER_URL
ARG LAUNCH_EMBED_URL
ARG SIERRA_UPGRADE_AUG_2023
ARG REVERSE_PROXY_ENABLED
ARG OPEN_LOCATIONS

ENV NODE_ENV=production
ENV TZ=America/New_York
Expand All @@ -39,6 +40,10 @@ ENV NYPL_HEADER_URL=${NYPL_HEADER_URL}
ENV LAUNCH_EMBED_URL=${LAUNCH_EMBED_URL}
ENV SIERRA_UPGRADE_AUG_2023=${SIERRA_UPGRADE_AUG_2023}
ENV REVERSE_PROXY_ENABLED=${REVERSE_PROXY_ENABLED}
ENV OPEN_LOCATIONS=${OPEN_LOCATIONS}
ENV CLOSED_LOCATIONS=${CLOSED_LOCATIONS}
ENV RECAP_CLOSED_LOCATIONS=${RECAP_CLOSED_LOCATIONS}
ENV NON_RECAP_CLOSED_LOCATIONS=${NON_RECAP_CLOSED_LOCATIONS}

# Install dependencies.
COPY package.json ./
Expand Down
2 changes: 2 additions & 0 deletions src/app/components/Item/RequestButtons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const RequestButtons = ({ item, bibId, searchKeywords, appConfig, page }) => {
const allClosed = closedLocations
.concat(isRecap ? recapClosedLocations : nonRecapClosedLocations)
.includes('');
console.log({closedLocations, recapClosedLocations, nonRecapClosedLocations, allClosed})
const isAeon = item.aeonUrl && features.includes('aeon-links');
console.log(item.aeonUrl, features, isAeon)

const physRequestButton = () => {
if (isAeon || allClosed || !item.physRequestable) {
Expand Down

0 comments on commit b2c9395

Please sign in to comment.