diff --git a/.eslintignore b/.eslintignore index 0c92d713..1ee11881 100644 --- a/.eslintignore +++ b/.eslintignore @@ -30,7 +30,7 @@ yarn-error.log* .idea/ # Configuration -config.js +configuration.js #service-worker public/mockServiceWorker.js \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index 53a33885..d2717bd2 100644 --- a/.prettierignore +++ b/.prettierignore @@ -30,7 +30,7 @@ yarn-error.log* .idea/ # Configuration -config.js +configuration.js # ESLint cache .eslintcache diff --git a/config.js b/configuration.js similarity index 100% rename from config.js rename to configuration.js diff --git a/entrypoint.sh b/entrypoint.sh index 87d428e9..38e0ec82 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,10 @@ #!/bin/sh -sed -i "s~~${BFF_SERVICE_BASE_URL}~g" /usr/share/nginx/html/config.js -sed -i "s~~${APM_BASE_URL}~g" /usr/share/nginx/html/config.js -sed -i "s~~${APM_APP_NAME}~g" /usr/share/nginx/html/config.js -sed -i "s~~${AUTH_BASE_URL}~g" /usr/share/nginx/html/config.js -sed -i "s~~${AUTH_CLIENT_ID}~g" /usr/share/nginx/html/config.js -sed -i "s~~${SENTRY_DSN}~g" /usr/share/nginx/html/config.js +sed -i "s~~${BFF_SERVICE_BASE_URL}~g" /usr/share/nginx/html/configuration.js +sed -i "s~~${APM_BASE_URL}~g" /usr/share/nginx/html/configuration.js +sed -i "s~~${APM_APP_NAME}~g" /usr/share/nginx/html/configuration.js +sed -i "s~~${AUTH_BASE_URL}~g" /usr/share/nginx/html/configuration.js +sed -i "s~~${AUTH_CLIENT_ID}~g" /usr/share/nginx/html/configuration.js +sed -i "s~~${SENTRY_DSN}~g" /usr/share/nginx/html/configuration.js exec "$@" diff --git a/index.html b/index.html index bdab5d89..41a95f01 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@

Collections portal

- + diff --git a/package.json b/package.json index 8530f411..929af3f8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "start": "vite", "clean": "rm -rf dist && rm -rf stats", "copy-mocks": "cp -r __mocks__/ dist/__mocks__/", - "copy-config": "cp config.template.js dist/config.js", + "copy-config": "cp config.template.js dist/configuration.js", "build": "npm run clean && tsc && vite build && npm run copy-mocks && npm run copy-config", "build:new": "npm run clean && vite build --base=/new/ && npm run copy-mocks && npm run copy-config", "preview": "vite preview", diff --git a/tsconfig.json b/tsconfig.json index f3bc1d24..25350c4c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,6 @@ "noEmit": true, "jsx": "react-jsx", }, - "include": ["src", "config.js", "config.template.js"], + "include": ["src", "configuration.js", "config.template.js"], "references": [{ "path": "./tsconfig.node.json" }] }