get_dynamic_envar(..., _uipl, ...)

This commit is contained in:
Luk 2025-11-12 17:34:12 +08:00
parent 87b60bf581
commit e2aa30a792

View File

@ -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 {