diff --git a/lib/constants/platforms.ts b/lib/constants/platforms.ts
index 9b5a34c465435597b61378aa02d065df19dd0e54..1d8171245f84fec3acac4db8ae97902f7fe9c812 100644
--- a/lib/constants/platforms.ts
+++ b/lib/constants/platforms.ts
@@ -1,13 +1,16 @@
-export type PlatformId =
-  | 'azure'
-  | 'codecommit'
-  | 'bitbucket'
-  | 'bitbucket-server'
-  | 'gerrit'
-  | 'gitea'
-  | 'github'
-  | 'gitlab'
-  | 'local';
+export const PLATFORM_HOST_TYPES = [
+  'azure',
+  'bitbucket',
+  'bitbucket-server',
+  'codecommit',
+  'gerrit',
+  'gitea',
+  'github',
+  'gitlab',
+  'local',
+] as const;
+
+export type PlatformId = (typeof PLATFORM_HOST_TYPES)[number];
 
 export const GITEA_API_USING_HOST_TYPES = [
   'gitea',