update azure.ts and changeset file

Signed-off-by: Camgoz, Fatih <fatih.camgoz@rbc.com>
This commit is contained in:
Camgoz, Fatih
2025-05-16 14:49:13 -04:00
parent 35e4afcc25
commit c0f43dc2ae
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -1,17 +1,16 @@
---
'@backstage/plugin-catalog-backend-module-azure': minor
'@backstage/plugin-catalog-backend-module-azure': patch
---
The `isCloud` function now also checks if hostname is visualstudio.com or ends with .visualstudio.com along with dev.azure.com
visualstudio.com domains are now supported along with dev.azure.com
```diff
- const isCloud = (host: string) => host === 'dev.azure.com';
+ const isCloud = (host: string) => {
+ if (host === 'dev.azure.com') {
+ return true;
+ }
+
+ if (host === 'visualstudio.com' || host.endsWith('.visualstudio.com')) {
+ if (host.endsWith('.visualstudio.com')) {
+ return true;
+ }
+
@@ -51,7 +51,7 @@ const isCloud = (host: string) => {
return true;
}
if (host === 'visualstudio.com' || host.endsWith('.visualstudio.com')) {
if (host.endsWith('.visualstudio.com')) {
return true;
}