fix: use node-fetch instead of native fetch

Signed-off-by: Oliver Dirks <oliver.dirks@gothaer.de>
This commit is contained in:
Oliver Dirks
2024-11-06 08:18:26 +01:00
parent 9f371dc6ce
commit ecf6b39eef
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
Use `node-fetch` instead of native fetch, as per https://backstage.io/docs/architecture-decisions/adrs-adr013
@@ -22,6 +22,7 @@ import { tokenTypes } from '@backstage/plugin-auth-node';
import { JwksClient } from '../JwksClient';
import { HumanDuration, durationToMilliseconds } from '@backstage/types';
import { PluginKeySource } from './keys/types';
import fetch from 'node-fetch';
const SECONDS_IN_MS = 1000;