mirror of
https://github.com/supabase/supabase.git
synced 2026-07-05 06:14:33 +08:00
* init layouts in project settings
* Update general.tsx
* update gap
* Update Scaffold.tsx
* Update PostgrestConfig.tsx
* Update PostgrestConfig.tsx
* spacing issues
* now added a enabled switch
* Revert "now added a enabled switch"
This reverts commit f22050302a.
* Update PostgrestConfig.tsx
* Update PostgrestConfig.tsx
* revert
* Update project-postgrest-config-update-mutation.ts
* add bottom padding
* init changes
* Update PostgrestConfig.tsx
* Update [slug].tsx
* Update PostgrestConfig.tsx
* fix
* Update PostgrestConfig.tsx
* Update PostgrestConfig.tsx
* Update PostgrestConfig.tsx
* Pull updates, resolve conflicts
* remove staging/local specific logic.
• stopped provider Select from flashing
•
* Update [slug].tsx
* split up region query
* Update [slug].tsx
* Update [slug].tsx
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
13 lines
375 B
TypeScript
13 lines
375 B
TypeScript
import { AWS_REGIONS, CloudProvider, FLY_REGIONS, Region } from 'lib/constants'
|
|
import { pluckObjectFields } from 'lib/helpers'
|
|
|
|
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')
|
|
}
|