The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: disable updating file size limit if free tier
Beng Eu063fbda2cc83
diff --git a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsxindex 6a0e0addb73..965135173e9 100644--- a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx@@ -33,6 +33,7 @@ const StorageSettings: FC<any> = ({ projectRef }) => {const StorageConfig = ({ config, projectRef }: any) => {const { ui } = useStore()+ const { isFreeTier } = configconst [updates, setUpdates] = useState(config)const updateConfig = async (updatedConfig: any) => {@@ -72,7 +73,14 @@ const StorageConfig = ({ config, projectRef }: any) => {onSubmit={(model: any) => updateConfig(model)}onReset={() => setUpdates(config)}>- <AutoField name="fileSizeLimit" showInlineError errorMessage="Must be a number." />+ <AutoField+ disabled={isFreeTier}+ name="fileSizeLimit"+ showInlineError+ errorMessage={`Must be a number up to ${new Intl.NumberFormat('en-US').format(+ STORAGE_FILE_SIZE_LIMIT_MAX+ )} bytes.`}+ /></SchemaFormPanel></div>)