From 38fddab7d54e570ac15b3bcaedf07e38341e6868 Mon Sep 17 00:00:00 2001 From: zcason Date: Wed, 20 Sep 2023 15:17:32 -0500 Subject: [PATCH] readme update Signed-off-by: zcason --- plugins/graphql-backend/README.md | 7 ++++--- plugins/playlist-backend/README.md | 11 +++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/graphql-backend/README.md b/plugins/graphql-backend/README.md index 11453ec8bc..d1bd53b38d 100644 --- a/plugins/graphql-backend/README.md +++ b/plugins/graphql-backend/README.md @@ -29,14 +29,15 @@ This will launch the full example backend. ### New Backend System -The Grahpql backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up: +The grahpql backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up: In your `packages/backend/src/index.ts` make the following changes: ```diff -+ import { graphqlPlugin } from '@backstage/plugin-graphql-backend'; +import { createBackend } from '@backstage/backend-defaults'; const backend = createBackend(); -+ backend.add(graphqlPlugin()); + +backend.add(import('@backstage/plugin-graphql-backend')); // ... other feature additions backend.start(); diff --git a/plugins/playlist-backend/README.md b/plugins/playlist-backend/README.md index e336ec5b08..b5c9b8797b 100644 --- a/plugins/playlist-backend/README.md +++ b/plugins/playlist-backend/README.md @@ -93,13 +93,12 @@ The Playlist backend plugin has support for the [new backend system](https://bac In your `packages/backend/src/index.ts` make the following changes: ```diff - import { createBackend } from '@backstage/backend-defaults'; -+ import { playlistPlugin } from '@backstage/plugin-playlist-backend'; - const backend = createBackend(); +import { createBackend } from '@backstage/backend-defaults'; - // ... other feature additions +const backend = createBackend(); -+ backend.add(playlistPlugin()); +backend.add(import('@backstage/plugin-playlist-backend')); +// ... other feature additions - backend.start(); +backend.start(); ```