reworked config to dynamically adjust to staging or master config value (2nd version aftert 1st lost)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import * as I from "../types/types";
|
||||
import { config } from "./config";
|
||||
|
||||
export default class Utils {
|
||||
|
||||
@@ -98,4 +99,10 @@ export default class Utils {
|
||||
if (process.env["NODE_ENV"] === "development")
|
||||
console.log(inMessage);
|
||||
}
|
||||
|
||||
static getConfigValue(inProperty: I.TypeConfigResourcesProperty): string {
|
||||
const branch: I.TypeConfigBranch = config.branch;
|
||||
const resources = config.resources[branch];
|
||||
return resources[inProperty];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user