diff --git a/Dockerfile b/Dockerfile index aad1580c0..cccdb6cc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ ARG APP_REACT_APP_DIGITRANSIT_API_KEY ENV REACT_APP_DIGITRANSIT_API_KEY=${APP_REACT_APP_DIGITRANSIT_API_KEY} ARG APP_DOMAIN -ENV DOMAIN_NAME=${APP_DOMAIN} +ENV APP_DOMAIN=${APP_DOMAIN} ARG APP_BUILD_DATE ENV BUILD_DATE=${APP_BUILD_DATE} diff --git a/config/env.js b/config/env.js index eabd9d05e..dda7251f1 100644 --- a/config/env.js +++ b/config/env.js @@ -78,7 +78,7 @@ function getClientEnvironment(publicUrl) { // images into the `src` and `import` them in code to get their paths. PUBLIC_URL: publicUrl, ENVIRONMENT: process.env.ENVIRONMENT, - DOMAIN_NAME: process.env.DOMAIN_NAME, + APP_DOMAIN: process.env.APP_DOMAIN, BUILD_DATE: process.env.BUILD_DATE, REACT_APP_DIGITRANSIT_API_KEY: process.env.REACT_APP_DIGITRANSIT_API_KEY } diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 6dc75a6fc..52a1d328f 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -305,7 +305,7 @@ module.exports = { 'process.env.REACT_APP_DIGITRANSIT_API_KEY': JSON.stringify(process.env.REACT_APP_DIGITRANSIT_API_KEY) }), new webpack.DefinePlugin({ - 'process.env.DOMAIN_NAME': JSON.stringify(process.env.DOMAIN_NAME) + 'process.env.APP_DOMAIN': JSON.stringify(process.env.APP_DOMAIN) }), new webpack.DefinePlugin({ 'process.env.BUILD_DATE': JSON.stringify(process.env.BUILD_DATE)