diff --git a/plugins/explore-backend/CHANGELOG.md b/plugins/explore-backend/CHANGELOG.md index 2c478e6a4e..de8b7b7dd6 100644 --- a/plugins/explore-backend/CHANGELOG.md +++ b/plugins/explore-backend/CHANGELOG.md @@ -99,7 +99,7 @@ - ]; - - StaticExploreToolProvider.fromData(tools) - + StaticExploreToolProvider.fromData(env.config) + + StaticExploreToolProvider.fromConfig(env.config) ``` - Updated dependencies diff --git a/plugins/explore-backend/README.md b/plugins/explore-backend/README.md index a7a6496fe4..543e8e2fa2 100644 --- a/plugins/explore-backend/README.md +++ b/plugins/explore-backend/README.md @@ -39,15 +39,6 @@ export default async function createPlugin( } ``` -#### Tools as Code - -Install dependencies - -```bash -# From your Backstage root directory -yarn add --cwd packages/backend @backstage/plugin-explore-backend @backstage/plugin-explore-common -``` - Config: ```yaml @@ -63,6 +54,15 @@ explore: - nerdGraph ``` +#### Tools as Code + +Install dependencies + +```bash +# From your Backstage root directory +yarn add --cwd packages/backend @backstage/plugin-explore-backend @backstage/plugin-explore-common +``` + You'll need to add the plugin to the router in your `backend` package. You can do this by creating a file called `packages/backend/src/plugins/explore.ts` with the following content: