# Configuration
## Configuration Object
The CollectionSpace UI is configured by passing a configuration object to the `cspaceUI` function, as in the following example:
```JavaScript
cspaceUI({
basename: '/mymuseum',
serverUrl: 'https://nightly.collectionspace.org',
messages: {
'about.title': 'Welcome to My Museum CollectionSpace',
},
});
```
## Configurer Function
Alternatively, a configurer function may be passed to `cspaceUI` instead of an object. The configurer function will be called by the cspace-ui framework at initialization time, and it should return a configuration object. The function will receive one parameter: a [configuration context](./ConfigurationContext.md) object that contains information about the runtime environment, and provides access to cspace-ui APIs. This allows for more complex configurations.
For example:
```JavaScript
cspaceUI((configContext) => {
// Can access configContext here.
return {
basename: '/mymuseum',
serverUrl: 'https://nightly.collectionspace.org',
messages: {
'about.title': 'Welcome to My Museum CollectionSpace',
},
};
});
```
## Using Plugins
The CollectionSpace UI may be configured to use plugins. Plugins are modules that provide configuration settings.
ℹ️ In a standard CollectionSpace server installation, plugins are placed in the `webapps/cspace-ui` folder under tomcat.
To use a plugin, first load its JavaScript file into the HTML page that contains the CollectionSpace UI using a `