Skip to content

Commit 4363593

Browse files
committed
Map cloud provider options instead of hardcoding
1 parent 0019d84 commit 4363593

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/airnode-validator/src/config

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,4 +710,6 @@ 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+
export const availableCloudProviders = cloudProviderSchema.options.map(
714+
(option) => option.type as CloudProvider['type']
715+
);

0 commit comments

Comments
 (0)