> For the complete documentation index, see [llms.txt](https://api.lampix.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.lampix.co/application-development/lampixjs/api/getappconfig.md).

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