> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usedatabrain.com/llms.txt
> Use this file to discover all available pages before exploring further.

#  Self Hosted Config

> When self hosted version of the app is used, the app needs to use these settings during embedding.

To change the configs we need to add some changes -

Where we are importing the plugin in the same file -

```js theme={"dark"}
import "@databrainhq/plugin/web";

window.dbn = {
  baseUrl: SELFHOSTED_URL,
};
```

Assign configs in the `window.dbn` object. baseUrl - The base API endpoint e.g. [https://api.example.com](https://api.example.com), [https://yourdomain.com](https://yourdomain.com), etc.

You may face typescript errors while assigning to `window.dbn` this can be resolved by adding the below code to any global `d.ts` file

```ts theme={"dark"}
interface Window {
  dbn: Record<string, string>;
}
```
