getAppConfig

Retrieve the contents of the config.json file.

Returns

(Promise<object>): A promise that fulfills with a plain object.

Example

import lampix from '@lampix/core';

const initialize = (config) => {
  // do something with the data in config.json
};

lampix.getAppConfig()
  .then((config) => {
    initialize(config);
  });

Notes

See config.json of the production application structure for details on what config.json is used for.

Last updated