fix(lighthouse): Typo & example code tweaks (#3573)

* Update export example

* Fix typo
This commit is contained in:
Adam Harvey
2020-12-07 03:44:25 -05:00
committed by GitHub
parent 2c12b5fc79
commit b20a63d103
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -27,8 +27,7 @@ your app's [`plugins.ts`](https://github.com/backstage/backstage/blob/master/pac
to enable the plugin:
```js
import { default as LighthousePlugin } from '@backstage/plugin-lighthouse';
export LighthousePlugin;
export { plugin as LighthousePlugin } from '@backstage/plugin-lighthouse';
```
Then, you need to use the `lighthouseApiRef` exported from the plugin to initialize the Rest API in
@@ -74,7 +73,7 @@ metadata:
lighthouse.com/website-url: # A single website url e.g. https://backstage.io/
```
> NOTE: The lighthouse plugin only supports one website url per component at this time.
> NOTE: The lighthouse plugin only supports one website URL per component at this time.
Add a lighthouse tab to the EntityPage: