createBackend changeset

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-08-11 00:18:53 +02:00
committed by Patrik Oldsberg
parent d1546d5c5b
commit a6d7983f34
+21
View File
@@ -0,0 +1,21 @@
---
'@backstage/backend-plugin-api': patch
'@backstage/backend-test-utils': patch
'@backstage/backend-defaults': patch
'@backstage/backend-app-api': patch
---
Removed options from `createBackend`.
The `createBackend` method doesn't accept any options anymore as in the following:
```ts
const backend = createBackend({ services: [myCustomServiceFactory] });
```
In order to pass custom service factories use the `add` method:
```ts
const backend = createBackend();
backend.add(customRootLoggerServiceFactory);
```