rewrite repo location urls

This commit is contained in:
Patrik Oldsberg
2020-11-03 10:37:24 +01:00
parent 5aaeeb03b5
commit af141c0766
170 changed files with 549 additions and 542 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ _It's likely you will need to enable CORS when running lighthouse-audit-service.
with the environment variable `LAS_CORS` set to `true`._
When you have an instance running that Backstage can hook into, make sure to export the plugin in
your app's [`plugins.ts`](https://github.com/spotify/backstage/blob/master/packages/app/src/plugins.ts)
your app's [`plugins.ts`](https://github.com/backstage/backstage/blob/master/packages/app/src/plugins.ts)
to enable the plugin:
```js
@@ -32,7 +32,7 @@ export LighthousePlugin;
```
Then, you need to use the `lighthouseApiRef` exported from the plugin to initialize the Rest API in
your [`apis.ts`](https://github.com/spotify/backstage/blob/master/packages/app/src/apis.ts).
your [`apis.ts`](https://github.com/backstage/backstage/blob/master/packages/app/src/apis.ts).
```js
import { ApiHolder, ApiRegistry } from '@backstage/core';
@@ -51,7 +51,7 @@ export const apis = (config: ConfigApi) => {
}
```
Then configure the lighthouse service url in your [`app-config.yaml`](https://github.com/spotify/backstage/blob/master/app-config.yaml).
Then configure the lighthouse service url in your [`app-config.yaml`](https://github.com/backstage/backstage/blob/master/app-config.yaml).
```yaml
lighthouse:
@@ -43,7 +43,7 @@ _It's likely you will need to enable CORS when running lighthouse-audit-service.
with the environment variable \`LAS_CORS\` set to \`true\`._
When you have an instance running that Backstage can hook into, make sure to export the plugin in
your app's [\`plugins.ts\`](https://github.com/spotify/backstage/blob/master/packages/app/src/plugins.ts)
your app's [\`plugins.ts\`](https://github.com/backstage/backstage/blob/master/packages/app/src/plugins.ts)
to enable the plugin:
\`\`\`js
@@ -52,7 +52,7 @@ export LighthousePlugin;
\`\`\`
Then, you need to use the \`lighthouseApiRef\` exported from the plugin to initialize the Rest API in
your [\`apis.ts\`](https://github.com/spotify/backstage/blob/master/packages/app/src/apis.ts).
your [\`apis.ts\`](https://github.com/backstage/backstage/blob/master/packages/app/src/apis.ts).
\`\`\`js
import { ApiHolder, ApiRegistry } from '@backstage/core';