Skip to content

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

hide global limit on self hosted

Alaister Younga22324fa2d27
diff --git a/studio/components/interfaces/Storage/CreateBucketModal.tsx b/studio/components/interfaces/Storage/CreateBucketModal.tsx
index 87889ab519f..32ccdcf603c 100644
--- a/studio/components/interfaces/Storage/CreateBucketModal.tsx
+++ b/studio/components/interfaces/Storage/CreateBucketModal.tsx
@@ -204,17 +204,19 @@ const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {
))}
</Listbox>
</div>
- <div className="col-span-12">
- <p className="text-scale-1000 text-sm">
- Note: The{' '}
- <Link href={`/project/${ref}/settings/storage`}>
- <a className="text-brand-900 opacity-80 hover:opacity-100 transition">
- global upload limit
- </a>
- </Link>{' '}
- takes precedence over this value ({formattedGlobalUploadLimit})
- </p>
- </div>
+ {IS_PLATFORM && (
+ <div className="col-span-12">
+ <p className="text-scale-1000 text-sm">
+ Note: The{' '}
+ <Link href={`/project/${ref}/settings/storage`}>
+ <a className="text-brand-900 opacity-80 hover:opacity-100 transition">
+ global upload limit
+ </a>
+ </Link>{' '}
+ takes precedence over this value ({formattedGlobalUploadLimit})
+ </p>
+ </div>
+ )}
</div>
)}
</div>
diff --git a/studio/components/interfaces/Storage/EditBucketModal.tsx b/studio/components/interfaces/Storage/EditBucketModal.tsx
index 956092aa7c2..a68e52a4973 100644
--- a/studio/components/interfaces/Storage/EditBucketModal.tsx
+++ b/studio/components/interfaces/Storage/EditBucketModal.tsx
@@ -227,17 +227,19 @@ const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalProps) =>
))}
</Listbox>
</div>
- <div className="col-span-12">
- <p className="text-scale-1000 text-sm">
- Note: The{' '}
- <Link href={`/project/${ref}/settings/storage`}>
- <a className="text-brand-900 opacity-80 hover:opacity-100 transition">
- global upload limit
- </a>
- </Link>{' '}
- takes precedence over this value ({formattedGlobalUploadLimit})
- </p>
- </div>
+ {IS_PLATFORM && (
+ <div className="col-span-12">
+ <p className="text-scale-1000 text-sm">
+ Note: The{' '}
+ <Link href={`/project/${ref}/settings/storage`}>
+ <a className="text-brand-900 opacity-80 hover:opacity-100 transition">
+ global upload limit
+ </a>
+ </Link>{' '}
+ takes precedence over this value ({formattedGlobalUploadLimit})
+ </p>
+ </div>
+ )}
</div>
)}
</div>