fix(app-defaults): propagate missing bitbucket server auth environment

Signed-off-by: RedlineTriad <39059512+RedlineTriad@users.noreply.github.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
RedlineTriad
2024-09-19 12:03:29 +02:00
parent 3f12044826
commit 8c40e55777
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/app-defaults': patch
---
Updated the `bitbucket-server-auth` default API to set its environment based on the `auth.environment` config option instead of being hardcoded to `development`.
@@ -243,6 +243,7 @@ export const apis = [
discoveryApi,
oauthRequestApi,
defaultScopes: ['REPO_READ'],
environment: configApi.getOptionalString('auth.environment'),
}),
}),
createApiFactory({
+1
View File
@@ -318,6 +318,7 @@ export const apis = [
discoveryApi,
oauthRequestApi,
defaultScopes: ['REPO_READ'],
environment: configApi.getOptionalString('auth.environment'),
}),
}),
},