changed config to configuration (#31)
This commit is contained in:
committed by
GitHub Enterprise
parent
39a7a6dadb
commit
ea29ab1df0
@@ -30,7 +30,7 @@ yarn-error.log*
|
||||
.idea/
|
||||
|
||||
# Configuration
|
||||
config.js
|
||||
configuration.js
|
||||
|
||||
#service-worker
|
||||
public/mockServiceWorker.js
|
||||
@@ -30,7 +30,7 @@ yarn-error.log*
|
||||
.idea/
|
||||
|
||||
# Configuration
|
||||
config.js
|
||||
configuration.js
|
||||
|
||||
# ESLint cache
|
||||
.eslintcache
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i "s~<BFF_SERVICE_BASE_URL>~${BFF_SERVICE_BASE_URL}~g" /usr/share/nginx/html/config.js
|
||||
sed -i "s~<APM_BASE_URL>~${APM_BASE_URL}~g" /usr/share/nginx/html/config.js
|
||||
sed -i "s~<APM_APP_NAME>~${APM_APP_NAME}~g" /usr/share/nginx/html/config.js
|
||||
sed -i "s~<AUTH_BASE_URL>~${AUTH_BASE_URL}~g" /usr/share/nginx/html/config.js
|
||||
sed -i "s~<AUTH_CLIENT_ID>~${AUTH_CLIENT_ID}~g" /usr/share/nginx/html/config.js
|
||||
sed -i "s~<SENTRY_DSN>~${SENTRY_DSN}~g" /usr/share/nginx/html/config.js
|
||||
sed -i "s~<BFF_SERVICE_BASE_URL>~${BFF_SERVICE_BASE_URL}~g" /usr/share/nginx/html/configuration.js
|
||||
sed -i "s~<APM_BASE_URL>~${APM_BASE_URL}~g" /usr/share/nginx/html/configuration.js
|
||||
sed -i "s~<APM_APP_NAME>~${APM_APP_NAME}~g" /usr/share/nginx/html/configuration.js
|
||||
sed -i "s~<AUTH_BASE_URL>~${AUTH_BASE_URL}~g" /usr/share/nginx/html/configuration.js
|
||||
sed -i "s~<AUTH_CLIENT_ID>~${AUTH_CLIENT_ID}~g" /usr/share/nginx/html/configuration.js
|
||||
sed -i "s~<SENTRY_DSN>~${SENTRY_DSN}~g" /usr/share/nginx/html/configuration.js
|
||||
|
||||
exec "$@"
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<p id="collections-text">Collections portal</p>
|
||||
</div>
|
||||
</div>
|
||||
<script type="application/javascript" src="/config.js"></script>
|
||||
<script type="application/javascript" src="/configuration.js"></script>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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" }]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user