Comment on page
getAppConfig
Retrieve the contents of the
config.json
file.(
Promise<object>
): A promise that fulfills with a plain object.import lampix from '@lampix/core';
const initialize = (config) => {
// do something with the data in config.json
};
lampix.getAppConfig()
.then((config) => {
initialize(config);
});
See
config.json
of the production application structure for details on what config.json
is used for.Last modified 5yr ago