get_dynamic_envar(..., _uipl, ...)
This commit is contained in:
parent
87b60bf581
commit
e2aa30a792
@ -99,7 +99,7 @@ module.exports = {
|
|||||||
|
|
||||||
/* 读取动态配置文件中的环境变量。
|
/* 读取动态配置文件中的环境变量。
|
||||||
*/
|
*/
|
||||||
get_dynamic_envar ({ dynamicEnvarFiles = ['./envar-config.js', './envar-config.gitignore.js'], base2app, _clientInfo } = {}) {
|
get_dynamic_envar ({ dynamicEnvarFiles = ['./envar-config.js', './envar-config.gitignore.js'], base2app, _uipl, _clientInfo } = {}) {
|
||||||
// config file should be absolute or relative to the node process's dir.
|
// config file should be absolute or relative to the node process's dir.
|
||||||
|
|
||||||
let dynamicEnvar = {}
|
let dynamicEnvar = {}
|
||||||
@ -122,7 +122,7 @@ module.exports = {
|
|||||||
if (typeof fileContent === 'object') {
|
if (typeof fileContent === 'object') {
|
||||||
assign_deep(dynamicEnvar, fileContent)
|
assign_deep(dynamicEnvar, fileContent)
|
||||||
} else if (typeof fileContent === 'function') {
|
} else if (typeof fileContent === 'function') {
|
||||||
assign_deep(dynamicEnvar, fileContent({ base2app, _clientInfo }))
|
assign_deep(dynamicEnvar, fileContent({ base2app, _uipl, _clientInfo }))
|
||||||
}
|
}
|
||||||
globalThis.wo?.ccinfo?.({ _from: 'get_dynamic_envar', about: ` - ${dynamicFile} is parsed.` })
|
globalThis.wo?.ccinfo?.({ _from: 'get_dynamic_envar', about: ` - ${dynamicFile} is parsed.` })
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user