Skip to content

Commit 45713e2

Browse files
authored
fix: nimbus local/staging region (supabase#39841)
1 parent c73296e commit 45713e2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ export function getAvailableRegions(cloudProvider: CloudProvider): Region {
1212
case 'AWS_K8S':
1313
return AWS_REGIONS
1414
case 'AWS_NIMBUS':
15-
// Only allow US East for Nimbus
15+
if (process.env.NEXT_PUBLIC_ENVIRONMENT !== 'prod') {
16+
// Only allow Southeast Asia for Nimbus (local/staging)
17+
return {
18+
SOUTHEAST_ASIA: AWS_REGIONS.SOUTHEAST_ASIA,
19+
}
20+
}
21+
22+
// Only allow US East for Nimbus (prod)
1623
return {
1724
EAST_US: AWS_REGIONS.EAST_US,
1825
}

0 commit comments

Comments
 (0)