diff --git a/Dockerfile b/Dockerfile index b1a446db2..f5b511b04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,15 @@ FROM node:20-alpine as production WORKDIR /app +ARG HOLD_REQUEST_NOTIFICATION +ARG SEARCH_RESULTS_NOTIFICATION + ENV NODE_ENV=production ENV TZ=America/New_York +ENV HOLD_REQUEST_NOTIFICATION=${HOLD_REQUEST_NOTIFICATION} +ENV SEARCH_RESULTS_NOTIFICATION=${SEARCH_RESULTS_NOTIFICATION} + # Install dependencies. COPY package.json ./ COPY package-lock.json ./ diff --git a/src/app/data/appConfig.js b/src/app/data/appConfig.js index 8287124e8..67423c295 100644 --- a/src/app/data/appConfig.js +++ b/src/app/data/appConfig.js @@ -4,11 +4,11 @@ import mapLocations from '../utils/mapLocations'; const appConfig = { appTitle: 'NYPL | Discovery', appName: 'discovery', - displayTitle: process.env.DISPLAY_TITLE || 'Shared Collection Catalog', + displayTitle: process.env.DISPLAY_TITLE || 'Research Catalog', baseUrl: process.env.BASE_URL || '/research/research-catalog', - redirectFromBaseUrl: process.env.REDIRECT_FROM_BASE_URL, - legacyBaseUrl: process.env.LEGACY_BASE_URL, + redirectFromBaseUrl: process.env.REDIRECT_FROM_BASE_URL || '/research/collections/shared-collection-catalog', + legacyBaseUrl: process.env.LEGACY_BASE_URL || 'https://legacycatalog.nypl.org', favIconPath: 'https://ux-static.nypl.org/images/favicon.ico', port: 3001, environment: process.env.APP_ENV || 'production', @@ -42,7 +42,7 @@ const appConfig = { 'https://digital-research-books-api.nypl.org/v3/sfr/search', }, }, - circulatingCatalog: process.env.CIRCULATING_CATALOG, + circulatingCatalog: process.env.CIRCULATING_CATALOG || 'https://borrow.nypl.org', shepApi: process.env.SHEP_API, loginUrl: process.env.LOGIN_URL || 'https://login.nypl.org/auth/login', logoutUrl: process.env.LOGIN_BASE_URL ? process.env.LOGIN_BASE_URL + '/logout' : 'https://login.nypl.org/auth/logout',