diff --git a/.changeset/wise-teeth-study.md b/.changeset/wise-teeth-study.md index 1745bdbcb8..3db72c2d36 100644 --- a/.changeset/wise-teeth-study.md +++ b/.changeset/wise-teeth-study.md @@ -2,7 +2,7 @@ '@backstage/plugin-catalog-backend-module-azure': minor --- -isCloud function now also checks if hostname is visualstudio.com or endswith visualstudio.com along with dev.azure.com +The `isCloud` function now also checks if hostname is visualstudio.com or ends with .visualstudio.com along with dev.azure.com ```diff - const isCloud = (host: string) => host === 'dev.azure.com'; @@ -10,11 +10,11 @@ isCloud function now also checks if hostname is visualstudio.com or endswith vis + if (host === 'dev.azure.com') { + return true; + } - ++ + if (host === 'visualstudio.com' || host.endsWith('.visualstudio.com')) { + return true; + } - ++ + return false; + }; ```