diff --git a/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.test.ts b/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.test.ts index fd2b5c74c96..344eaf59ad9 100644 --- a/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.test.ts +++ b/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.test.ts @@ -94,7 +94,7 @@ describe('High Availability project creation constraints', () => { it.each([ ['local', 'eu-central-1'], ['staging', 'us-east-1'], - ['prod', undefined], + ['prod', 'us-east-1'], ])('resolves the %s region restriction', (environment, expectedRegion) => { expect(getHighAvailabilityRegionCode(environment)).toBe(expectedRegion) }) @@ -102,7 +102,7 @@ describe('High Availability project creation constraints', () => { it.each([ ['local', undefined], ['staging', 'us-east-1'], - ['prod', undefined], + ['prod', 'us-east-1'], ])( 'applies the %s region restriction to high availability projects', (environment, expectedRegion) => { diff --git a/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts b/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts index f04d8bca8a5..92c3938925a 100644 --- a/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts +++ b/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts @@ -86,6 +86,7 @@ export const getHighAvailabilityRegionCode = ( environment = process.env.NEXT_PUBLIC_ENVIRONMENT ) => { // Local dev stacks can run in any of the supported regions, so they're left unrestricted + if (environment === 'prod') return 'us-east-1' if (environment === 'staging') return 'us-east-1' if (environment === 'local') return 'eu-central-1' return undefined