The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: restrict smart region selection to default cloud provider (#39433)
Kang Ming7e83c8a3897f
diff --git a/apps/studio/pages/new/[slug].tsx b/apps/studio/pages/new/[slug].tsxindex 8c1a3a1d57d..0503384fbd9 100644--- a/apps/studio/pages/new/[slug].tsx+++ b/apps/studio/pages/new/[slug].tsx@@ -256,12 +256,16 @@ const Wizard: NextPageWithLayout = () => {})- const regionError = smartRegionEnabled ? availableRegionsError : defaultRegionError- const defaultRegion = smartRegionEnabled- ? availableRegionsData?.recommendations.smartGroup.name- : defaultProvider === 'AWS_NIMBUS'+ const regionError =+ smartRegionEnabled && defaultProvider !== 'AWS_NIMBUS'+ ? availableRegionsError+ : defaultRegionError+ const defaultRegion =+ defaultProvider === 'AWS_NIMBUS'? AWS_REGIONS.EAST_US.displayName- : _defaultRegion+ : smartRegionEnabled+ ? availableRegionsData?.recommendations.smartGroup.name+ : _defaultRegionconst { can: isAdmin } = useAsyncCheckPermissions(PermissionAction.CREATE, 'projects')