mirror of
https://github.com/supabase/supabase.git
synced 2026-05-25 05:03:29 +08:00
* feat: add AWS_NEW provider * fix selecting aws region * chore: add valid instance sizes --------- Co-authored-by: Alaister Young <a@alaisteryoung.com>
15 lines
385 B
TypeScript
15 lines
385 B
TypeScript
import type { CloudProvider, Region } from 'shared-data'
|
|
import { AWS_REGIONS, FLY_REGIONS } from 'shared-data'
|
|
|
|
export function getAvailableRegions(cloudProvider: CloudProvider): Region {
|
|
switch (cloudProvider) {
|
|
case 'AWS':
|
|
case 'AWS_NEW':
|
|
return AWS_REGIONS
|
|
case 'FLY':
|
|
return FLY_REGIONS
|
|
default:
|
|
throw new Error('Invalid cloud provider')
|
|
}
|
|
}
|