The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(storage): allow 50GB upgrade self-serve (#21220)
Fabrizio1f1d1ad3bf77
diff --git a/apps/docs/content/guides/storage/uploads/file-limits.mdx b/apps/docs/content/guides/storage/uploads/file-limits.mdxindex 84c816470ea..539d1cc0480 100644--- a/apps/docs/content/guides/storage/uploads/file-limits.mdx+++ b/apps/docs/content/guides/storage/uploads/file-limits.mdx@@ -11,16 +11,16 @@ You can customize the Max file size for file uploads.You can set the max file size across all your buckets by setting this global value in the dashboard [here](https://supabase.com/dashboard/project/_/settings/storage).-For Free projects the limit cannot exceed 50MB. On the Pro Plan and above, you can set this value to up to 5GB.+For Free projects the limit cannot exceed 50MB. On the Pro Plan and above, you can set this value to up to 50GB.| Plan | Max File Size Limit || ---------- | ------------------- || Free | 50MB |-| Pro | 5GB |-| Team | 5GB |-| Enterprise | 5GB |+| Pro | 50GB |+| Team | 50GB |+| Enterprise | Custom |-If you need more than 5GB please [contact us](https://supabase.com/dashboard/support/new).+If you need more than 50GB please [contact us](https://supabase.com/dashboard/support/new).Remember, this option is a global limit, which applies to all your buckets.You can additionally specify the max file size on a per [bucket level](/docs/guides/storage/buckets/creating-buckets#restricting-uploads) but it cannot be higher than this global limit.diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.constants.ts b/apps/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.constants.tsindex ebadcfc2e50..b46ecf2cca5 100644--- a/apps/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.constants.ts+++ b/apps/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.constants.ts@@ -1,4 +1,4 @@-export const STORAGE_FILE_SIZE_LIMIT_MAX_BYTES = 5 * 1024 * 1024 * 1024 // 5 GB+export const STORAGE_FILE_SIZE_LIMIT_MAX_BYTES = 50 * 1024 * 1024 * 1024 // 50 GBexport enum StorageSizeUnits {BYTES = 'bytes',diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx b/apps/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsxindex c816fa74fdc..8917e5ab9f3 100644--- a/apps/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx+++ b/apps/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx@@ -1,19 +1,19 @@import { PermissionAction } from '@supabase/shared-types/out/constants'+import { useParams } from 'common'import { useEffect, useState } from 'react'+import toast from 'react-hot-toast'import { Button, Form, IconClock, Input, Listbox } from 'ui'+import AlertError from 'components/ui/AlertError'+import { FormHeader } from 'components/ui/Forms'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import UpgradeToPro from 'components/ui/UpgradeToPro'import { useProjectStorageConfigQuery } from 'data/config/project-storage-config-query'import { useProjectStorageConfigUpdateUpdateMutation } from 'data/config/project-storage-config-update-mutation'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'import { IS_PLATFORM } from 'lib/constants'-import { StorageSizeUnits, STORAGE_FILE_SIZE_LIMIT_MAX_BYTES } from './StorageSettings.constants'+import { STORAGE_FILE_SIZE_LIMIT_MAX_BYTES, StorageSizeUnits } from './StorageSettings.constants'import { convertFromBytes, convertToBytes } from './StorageSettings.utils'-import { useParams } from 'common'-import toast from 'react-hot-toast'-import AlertError from 'components/ui/AlertError'-import { FormHeader } from 'components/ui/Forms'const StorageSettings = () => {const { ui } = useStore()@@ -75,7 +75,7 @@ const StorageSettings = () => {const errors = onValidate(values)if (errors.fileSizeLimit) {- return toast.error(`Upload file size limit must be up to 5GB (${formattedMaxSizeBytes})`)+ return toast.error(`Upload file size limit must be up to 50GB (${formattedMaxSizeBytes})`)}updateStorageConfig({diff --git a/packages/shared-data/pricing.ts b/packages/shared-data/pricing.tsindex 4847f020d0f..799a97d6eb4 100644--- a/packages/shared-data/pricing.ts+++ b/packages/shared-data/pricing.ts@@ -287,8 +287,8 @@ export const pricing: Pricing = {tooltips: { main: 'You can change the upload size in the dashboard' },plans: {free: '50 MB',- pro: '5 GB',- team: '5 GB',+ pro: '50 GB',+ team: '50 GB',enterprise: 'Custom',},usage_based: false,