mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 03:06:38 +02:00
💄 Fix naming inconsistencies on uri prop.
This commit is contained in:
parent
19cd84597d
commit
5983155680
10 changed files with 45 additions and 41 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue