docs: remove function call from all backend feature installation instructions

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-09-18 15:22:41 +02:00
parent d0a007356b
commit 2f88f88882
17 changed files with 41 additions and 30 deletions
@@ -24,7 +24,7 @@ const backend = createBackend();
backend.add(import('@backstage/plugin-catalog-backend/alpha'));
// Features can also be installed using an explicit reference
backend.add(scaffolderPlugin());
backend.add(scaffolderPlugin);
// Start up the backend
backend.start();
@@ -41,7 +41,7 @@ The `createBackendPlugin` return value is exported as `examplePlugin`, which is
```ts
import { examplePlugin } from 'backstage-plugin-example-backend';
backend.add(examplePlugin());
backend.add(examplePlugin);
```
By convention every plugin package should export its plugin instance as the default export from the package: