The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: support for launching custom project versions in non-prod envs
Div Arora7d24319f0e9b
diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsxindex 9702dca4aac..01b92b8b0f3 100644--- a/studio/pages/new/[slug].tsx+++ b/studio/pages/new/[slug].tsx@@ -45,6 +45,7 @@ const Wizard: NextPageWithLayout = () => {useFreeProjectLimitCheckQuery({ slug })const [projectName, setProjectName] = useState('')+ const [postgresVersion, setPostgresVersion] = useState('')const [dbPass, setDbPass] = useState('')const [dbRegion, setDbRegion] = useState(REGIONS_DEFAULT)const [dbPricingTierKey, setDbPricingTierKey] = useState(PRICING_TIER_DEFAULT_KEY)@@ -121,6 +122,10 @@ const Wizard: NextPageWithLayout = () => {setProjectName(e.target.value)}+ function onPostgresVersionChange(e: any) {+ setPostgresVersion(e.target.value)+ }+function onDbPassChange(e: any) {const value = e.target.valuesetDbPass(value)@@ -147,7 +152,7 @@ const Wizard: NextPageWithLayout = () => {const onClickNext = async () => {setNewProjectLoading(true)- const data = {+ const data: Record<string, any> = {cloud_provider: PROVIDERS.AWS.id, // hardcoded for DB instances to be under AWSorg_id: currentOrg?.id,name: projectName,@@ -156,6 +161,15 @@ const Wizard: NextPageWithLayout = () => {db_pricing_tier_id: (PRICING_TIER_PRODUCT_IDS as any)[dbPricingTierKey],kps_enabled: kpsEnabled,}+ if (postgresVersion) {+ data['custom_supabase_internal_requests'] = {+ ami: {+ search_tags: {+ 'tag:postgresVersion': postgresVersion+ }+ }+ }+ }const response = await post(`${API_URL}/projects`, data)if (response.error) {setNewProjectLoading(false)@@ -282,6 +296,23 @@ const Wizard: NextPageWithLayout = () => {/></Panel.Content>+ <Panel.Content+ className={[+ 'Form section-block--body has-inputs-centered border-t border-b',+ 'border-panel-border-interior-light dark:border-panel-border-interior-dark',+ ].join(' ')}+ >+ <Input+ id="custom-postgres-version"+ layout="horizontal"+ label="Custom Postgres Version (non-prod only)"+ type="text"+ placeholder="Postgres Version"+ value={postgresVersion}+ onChange={onPostgresVersionChange}+ />+ </Panel.Content>+<Panel.Content className="border-b Form section-block--body has-inputs-centered border-panel-border-interior-light dark:border-panel-border-interior-dark"><Inputid="password"