Skip to content

External configuration

Twan Goosen edited this page Dec 30, 2015 · 1 revision

A configuration object is defined in Configuration.js, which is used throughout the application to access (static) values that may change between environments. If a global function getComponentRegistryConfig() is defined, this is called and the returned object is used as the configuration object. Otherwise, a default object is instantiated. This way, the index.html wrapper can 'inject' a dynamic configuration. It actually fetches a JSON resources that is dynamically generated by the back end (compRegConfig.jsp). This way, the service location matches the server environment without the need for further configuration of the front end. The log level can be passed to the front end through the back end by providing a loglevel query parameter.

Clone this wiki locally