Skip to content

Commit fae06c7

Browse files
committed
Replace hardcoded cloud providers with option map
1 parent 0019d84 commit fae06c7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • packages/airnode-validator/src/config

packages/airnode-validator/src/config/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,4 +710,7 @@ export type Amount = SchemaType<typeof amountSchema>;
710710
export type EnabledGateway = SchemaType<typeof enabledGatewaySchema>;
711711
export type MaxConcurrency = SchemaType<typeof maxConcurrencySchema>;
712712

713-
export const availableCloudProviders: CloudProvider['type'][] = ['aws', 'gcp'];
713+
// Extract literal values from discriminated union options
714+
export const availableCloudProviders = cloudProviderSchema.options.map(
715+
(option) => option.shape.type.value
716+
) as CloudProvider['type'][];

0 commit comments

Comments
 (0)