plugins/lighthouse: add lighthouse api to dev env
This commit is contained in:
@@ -16,5 +16,13 @@
|
||||
|
||||
import { createDevApp } from '@backstage/dev-utils';
|
||||
import { plugin } from '../src/plugin';
|
||||
import { lighthouseApiRef, LighthouseRestApi } from '../src';
|
||||
|
||||
createDevApp().registerPlugin(plugin).render();
|
||||
createDevApp()
|
||||
.registerPlugin(plugin)
|
||||
.registerApiFactory({
|
||||
implements: lighthouseApiRef,
|
||||
deps: {},
|
||||
factory: () => new LighthouseRestApi('http://localhost:3003'),
|
||||
})
|
||||
.render();
|
||||
|
||||
Reference in New Issue
Block a user