I found a snippet in function getKibanaPayload
:
vars: await reduceAsync(
uiExports.injectedVarsReplacers,
async (acc, replacer) => await replacer(acc, request, server),
defaults(await app.getInjectedVars() || {}, uiExports.defaultInjectedVars)
)
I have no idea about:
uiExports.injectedVarsReplacers,
async (acc, replacer) => await replacer(acc, request, server),
any introduce about injectedVarsReplacers? and what's this ``` async (acc, replacer) => await replacer(acc, request, server)