Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat(studio): link specific region to regions docs in free-tier region selector (#51590)

claude[bot]8b9af5686750
diff --git a/apps/studio/components/interfaces/ProjectCreation/RegionSelector.tsx b/apps/studio/components/interfaces/ProjectCreation/RegionSelector.tsx
index 30d3b7e58ab..82b414a2eea 100644
--- a/apps/studio/components/interfaces/ProjectCreation/RegionSelector.tsx
+++ b/apps/studio/components/interfaces/ProjectCreation/RegionSelector.tsx
@@ -45,6 +45,7 @@ import { useDefaultRegionQuery } from '@/data/misc/get-default-region-query'
import { useOrganizationAvailableRegionsQuery } from '@/data/organizations/organization-available-regions-query'
import { useIncidentStatusQuery } from '@/data/platform/incident-status-query'
import type { DesiredInstanceSize } from '@/data/projects/new-project.constants'
+import { DOCS_URL } from '@/lib/constants'
import { useTrack } from '@/lib/telemetry/track'
interface RegionSelectorProps {
@@ -404,7 +405,11 @@ export const RegionSelector = ({
>
Upgrade to Pro
</InlineLink>{' '}
- to choose a specific region.
+ to choose a{' '}
+ <InlineLink href={`${DOCS_URL}/guides/platform/regions`}>
+ specific region
+ </InlineLink>
+ .
</div>
)}
</SelectContent>
diff --git a/apps/studio/tests/pages/new/[slug].test.tsx b/apps/studio/tests/pages/new/[slug].test.tsx
index c59ac90e686..ff66a680715 100644
--- a/apps/studio/tests/pages/new/[slug].test.tsx
+++ b/apps/studio/tests/pages/new/[slug].test.tsx
@@ -706,6 +706,11 @@ describe('project creation wizard', () => {
'href',
`/org/${ORG_SLUG}/billing?panel=subscriptionPlan&source=freeTierGeneralRegionSelector`
)
+
+ expect(screen.getByRole('link', { name: 'specific region' })).toHaveAttribute(
+ 'href',
+ expect.stringMatching(/\/guides\/platform\/regions$/)
+ )
})
test('shows the full region picker with no upgrade footer for a free-plan org in the control arm', async () => {