# getAppConfig

Retrieve the contents of the `config.json` file.

## Returns

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

## Example

```javascript
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`](https://api.lampix.co/deploying/application-structure#config-and-schema) of the [production application structure](https://api.lampix.co/application-development/deploying/application-structure) for details on what `config.json` is used for.
