💄 Fix naming inconsistencies on uri prop.

This commit is contained in:
Andrey Antukh 2020-05-26 12:47:09 +02:00
parent 19cd84597d
commit 5983155680
10 changed files with 45 additions and 41 deletions

View file

@ -94,8 +94,9 @@ function readLocales() {
}
function readConfig(data) {
const publicURL = process.env.UXBOX_PUBLIC_URL;
const backendURL = process.env.UXBOX_BACKEND_URL;
const googleClientID = process.env.UXBOX_GOOGLE_CLIENT_ID;
const publicURI = process.env.UXBOX_PUBLIC_URI;
const backendURI = process.env.UXBOX_BACKEND_URI;
const demoWarn = process.env.UXBOX_DEMO_WARNING;
const deployDate = process.env.UXBOX_DEPLOY_DATE;
const deployCommit = process.env.UXBOX_DEPLOY_COMMIT;
@ -104,12 +105,16 @@ function readConfig(data) {
demoWarning: demoWarn === "true"
};
if (publicURL !== undefined) {
cfg.publicURL = publicURL;
if (googleClientID !== undefined) {
cfg.googleClientID = googleClientID;
}
if (backendURL !== undefined) {
cfg.backendURL = backendURL;
if (publicURI !== undefined) {
cfg.publicURI = publicURI;
}
if (backendURI !== undefined) {
cfg.backendURI = backendURI;
}
if (deployDate !== undefined) {