Added import for the packages/backend/src/index.ts file for adding the plugin and changed the file extension from js to ts

Signed-off-by: ebarrios <esteban.barrios@trivago.com>
This commit is contained in:
ebarrios
2021-03-03 15:47:30 +01:00
parent eba975b693
commit 80edd3af91
+4 -1
View File
@@ -12,7 +12,7 @@ yarn add @backstage/plugin-kafka @backstage/plugin-kafka-backend
2. Add the plugin backend:
In a new file named `kafka.js` under `backend/src/plugins`:
In a new file named `kafka.ts` under `backend/src/plugins`:
```js
import { createRouter } from '@backstage/plugin-kafka-backend';
@@ -29,6 +29,9 @@ export default async function createPlugin({
And then add to `packages/backend/src/index.ts`:
```js
// ...
import kafka from './plugins/kafka';
// ...
async function main() {
// ...
const kafkaEnv = useHotMemoize(module, () => createEnv('kafka'));