mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 11:56:37 +02:00
🔧 Minor changes on frontend build config.
This commit is contained in:
parent
70108a0aa7
commit
aa57083afc
3 changed files with 25 additions and 26 deletions
|
@ -101,13 +101,18 @@ function readLocales() {
|
|||
}
|
||||
|
||||
function readConfig() {
|
||||
const apiUrl = process.env.UXBOX_API_URL;
|
||||
const backendURL = process.env.UXBOX_BACKEND_URL;
|
||||
const demoWarn = process.env.UXBOX_DEMO_WARNING;
|
||||
|
||||
return JSON.stringify({
|
||||
apiUrl: (apiUrl === undefined ? "http://localhost:6060" : apiUrl.trim()),
|
||||
demoWarning: demoWarn === "true",
|
||||
});
|
||||
let cfg = {
|
||||
demoWarning: demoWarn === "true"
|
||||
};
|
||||
|
||||
if (backendURL !== undefined) {
|
||||
cfg.backendURL = backendURL;
|
||||
}
|
||||
|
||||
return JSON.stringify(cfg);
|
||||
}
|
||||
|
||||
function templatePipeline(options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue