import { AnimatePresence, motion } from 'framer-motion' import MotionNumber from 'motion-number' import { badgeVariants, cn, Tooltip_Shadcn_, TooltipContent_Shadcn_, TooltipTrigger_Shadcn_, } from 'ui' import { AUTOSCALING_THRESHOLD } from './DiskManagement.constants' interface DiskSpaceBarProps { showNewBar: boolean totalSize: number usedSize: number newTotalSize: number } export default function DiskSpaceBar({ showNewBar, totalSize, usedSize, newTotalSize, }: DiskSpaceBarProps) { const usedPercentage = (usedSize / totalSize) * 100 const resizePercentage = AUTOSCALING_THRESHOLD * 100 const newUsedPercentage = (usedSize / newTotalSize) * 100 const newResizePercentage = AUTOSCALING_THRESHOLD * 100 return (
Supabase expands your disk storage automatically when the database reached 90% of the disk size. However, any disk modifications, including auto-scaling, can only take place once every 6 hours.
If within those 6 hours you reach 95% of the disk space, your project{' '} will enter read-only mode.