Files
supabase/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts
Charis 5cd8384bca feat(docs), refactor(docs,studio): add regions list to docs (#28125)
* feat(docs), refactor(docs,studio): add regions list to docs

Adds list of supported AWS regions to docs.

Pulls the region information into `shared-data` package to provide common source of truth for dashboard and docs.

* style: format
2024-07-23 12:45:44 -04:00

13 lines
359 B
TypeScript

import type { CloudProvider, Region } from 'shared-data'
import { AWS_REGIONS, FLY_REGIONS } from 'shared-data'
export function getAvailableRegions(cloudProvider: CloudProvider): Region {
if (cloudProvider === 'AWS') {
return AWS_REGIONS
} else if (cloudProvider === 'FLY') {
return FLY_REGIONS
}
throw new Error('Invalid cloud provider')
}