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.
|
||||
|
||||
let dynamicEnvar = {}
|
||||
@ -122,7 +122,7 @@ module.exports = {
|
||||
if (typeof fileContent === 'object') {
|
||||
assign_deep(dynamicEnvar, fileContent)
|
||||
} 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.` })
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user