The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Hide r2np for fly hosted projects (#31304)
Jordi Enricef3da0d9f3d6
diff --git a/apps/studio/components/interfaces/Database/Backups/DatabaseBackupsNav.tsx b/apps/studio/components/interfaces/Database/Backups/DatabaseBackupsNav.tsxindex cd0ef0f72a7..5005de5146a 100644--- a/apps/studio/components/interfaces/Database/Backups/DatabaseBackupsNav.tsx+++ b/apps/studio/components/interfaces/Database/Backups/DatabaseBackupsNav.tsx@@ -11,7 +11,7 @@ type Props = {function DatabaseBackupsNav({ active }: Props) {const isCloneToNewProjectEnabled = useFlag('clonetonewproject')- const ref = useProjectContext()?.project?.ref+ const { ref, cloud_provider } = useProjectContext()?.project || {}const navMenuItems = [{@@ -27,7 +27,7 @@ function DatabaseBackupsNav({ active }: Props) {href: `/project/${ref}/database/backups/pitr`,},{- enabled: isCloneToNewProjectEnabled,+ enabled: isCloneToNewProjectEnabled && cloud_provider !== 'FLY',id: 'rtnp',label: (<div className="flex items-center gap-1">diff --git a/apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx b/apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsxindex 7f685eb6989..ef9d807df68 100644--- a/apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx+++ b/apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx@@ -83,10 +83,9 @@ const RestoreToNewProject = () => {'queue_job.restore.prepare')const PITR_ENABLED = cloneBackups?.pitr_enabled-+ const PHYSICAL_BACKUPS_ENABLED = project?.is_physical_backups_enabledconst dbVersion = getDatabaseMajorVersion(project?.dbVersion ?? '')const IS_PG15_OR_ABOVE = dbVersion >= 15- const PHYSICAL_BACKUPS_ENABLED = project?.is_physical_backups_enabledconst {data: cloneStatus,@@ -260,7 +259,7 @@ const RestoreToNewProject = () => {<MarkdownclassName="max-w-full [&>p]:!leading-normal"content={`This is a temporary limitation whereby projects that were originally restored from another project cannot be restored to yet another project.- If you need to restore a project to multiple other projects, please reach out via [support](/support/new?ref=${project?.ref}).`}+ If you need to restore from a restored project, please reach out via [support](/support/new?ref=${project?.ref}).`}/><Button asChild type="default"><Link href={`/project/${(cloneStatus?.cloned_from?.source_project as any)?.ref || ''}`}>