createBackend changeset
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
committed by
Patrik Oldsberg
parent
d1546d5c5b
commit
a6d7983f34
@@ -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);
|
||||
```
|
||||
Reference in New Issue
Block a user