The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
use enable instead of disable
dragarciaab6fcb0993bd
diff --git a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsxindex 5cac365a082..e57fe2cb52a 100644--- a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx+++ b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx@@ -21,7 +21,7 @@ const ProjectPausedState: FC<Props> = ({ project }) => {const freeProjectsLimit = ui.profile?.free_project_limit ?? DEFAULT_FREE_PROJECTS_LIMITconst enablePermissions = useFlag('enablePermissions')- const kpsDisabled = useFlag('initWithoutKps')+ const kpsEnabled = useFlag('initWithKps')const isOwner = ui.selectedOrganization?.is_ownerconst [showConfirmRestore, setShowConfirmRestore] = useState(false)@@ -42,7 +42,7 @@ const ProjectPausedState: FC<Props> = ({ project }) => {}const onConfirmRestore = async () => {- await post(`${API_URL}/projects/${project.ref}/restore`, { kps_disabled: kpsDisabled })+ await post(`${API_URL}/projects/${project.ref}/restore`, { kps_enabled: kpsEnabled })app.onProjectUpdated({ ...project, status: PROJECT_STATUS.RESTORING })ui.setNotification({ category: 'success', message: 'Restoring project' })}diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsxindex 8ad97239162..c5104c1c2ae 100644--- a/studio/pages/new/[slug].tsx+++ b/studio/pages/new/[slug].tsx@@ -41,7 +41,7 @@ const Wizard: NextPageWithLayout = () => {const enablePermissions = useFlag('enablePermissions')const projectCreationDisabled = useFlag('disableProjectCreationAndUpdate')- const kpsDisabled = useFlag('initWithoutKps')+ const kpsEnabled = useFlag('initWithKps')const subscriptionStats = useSubscriptionStats()const [projectName, setProjectName] = useState('')@@ -164,7 +164,7 @@ const Wizard: NextPageWithLayout = () => {db_pass: dbPass,db_region: dbRegion,db_pricing_tier_id: (PRICING_TIER_PRODUCT_IDS as any)[dbPricingTierKey],- kps_disabled: kpsDisabled,+ kps_enabled: kpsEnabled,}const response = await post(`${API_URL}/projects`, data)if (response.error) {diff --git a/studio/pages/project/[ref]/reports/index.tsx b/studio/pages/project/[ref]/reports/index.tsxindex b0a37992441..3c8315fd8e4 100644--- a/studio/pages/project/[ref]/reports/index.tsx+++ b/studio/pages/project/[ref]/reports/index.tsx@@ -28,11 +28,11 @@ export const UserReportPage: NextPageWithLayout = () => {subject: { id: ui.profile?.id },})- const kpsDisabled = useFlag('initWithoutKps')+ const kpsEnabled = useFlag('initWithKps')useEffect(() => {if (project && project.status === PROJECT_STATUS.INACTIVE) {- post(`${API_URL}/projects/${ref}/restore`, { kps_disabled: kpsDisabled })+ post(`${API_URL}/projects/${ref}/restore`, { kps_enabled: kpsEnabled })}}, [project])diff --git a/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx b/studio/pages/project/[ref]/storage/buckets/[bucketId].tsxindex c6befab26b1..721cd9cc538 100644--- a/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx+++ b/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx@@ -26,11 +26,11 @@ const PageLayout: NextPageWithLayout = () => {const storageStore = useStorageStore()const { buckets, loaded, openCreateBucketModal } = storageStore- const kpsDisabled = useFlag('initWithoutKps')+ const kpsEnabled = useFlag('initWithKps')useEffect(() => {if (project && project.status === PROJECT_STATUS.INACTIVE) {- post(`${API_URL}/projects/${ref}/restore`, { kps_disabled: kpsDisabled })+ post(`${API_URL}/projects/${ref}/restore`, { kps_enabled: kpsEnabled })}}, [project])diff --git a/studio/pages/project/[ref]/storage/buckets/index.tsx b/studio/pages/project/[ref]/storage/buckets/index.tsxindex 0fc1c81c598..80ca79f9f03 100644--- a/studio/pages/project/[ref]/storage/buckets/index.tsx+++ b/studio/pages/project/[ref]/storage/buckets/index.tsx@@ -24,11 +24,11 @@ const PageLayout: NextPageWithLayout = ({}) => {const storageStore = useStorageStore()const { openCreateBucketModal } = storageStore- const kpsDisabled = useFlag('initWithoutKps')+ const kpsEnabled = useFlag('initWithKps')useEffect(() => {if (project && project.status === PROJECT_STATUS.INACTIVE) {- post(`${API_URL}/projects/${ref}/restore`, { kps_disabled: kpsDisabled })+ post(`${API_URL}/projects/${ref}/restore`, { kps_enabled: kpsEnabled })}}, [project])diff --git a/studio/pages/project/[ref]/storage/policies.tsx b/studio/pages/project/[ref]/storage/policies.tsxindex 03dfb98ceb7..09d5f8d667f 100644--- a/studio/pages/project/[ref]/storage/policies.tsx+++ b/studio/pages/project/[ref]/storage/policies.tsx@@ -20,11 +20,11 @@ const PageLayout: NextPageWithLayout = () => {const { ui, meta } = useStore()const project = ui.selectedProject- const kpsDisabled = useFlag('initWithoutKps')+ const kpsEnabled = useFlag('initWithKps')useEffect(() => {if (project && project.status === PROJECT_STATUS.INACTIVE) {- post(`${API_URL}/projects/${ref}/restore`, { kps_disabled: kpsDisabled })+ post(`${API_URL}/projects/${ref}/restore`, { kps_enabled: kpsEnabled })}meta.roles.load()}, [project])diff --git a/studio/pages/project/[ref]/storage/settings.tsx b/studio/pages/project/[ref]/storage/settings.tsxindex f3bea8db5e6..84101380950 100644--- a/studio/pages/project/[ref]/storage/settings.tsx+++ b/studio/pages/project/[ref]/storage/settings.tsx@@ -19,11 +19,11 @@ const PageLayout: NextPageWithLayout = () => {const { ui } = useStore()const project = ui.selectedProject- const kpsDisabled = useFlag('initWithoutKps')+ const kpsEnabled = useFlag('initWithKps')useEffect(() => {if (project && project.status === PROJECT_STATUS.INACTIVE) {- post(`${API_URL}/projects/${ref}/restore`, { kps_disabled: kpsDisabled })+ post(`${API_URL}/projects/${ref}/restore`, { kps_enabled: kpsEnabled })}}, [project])diff --git a/studio/pages/project/[ref]/storage/usage.tsx b/studio/pages/project/[ref]/storage/usage.tsxindex 77f589b0283..01482b0a520 100644--- a/studio/pages/project/[ref]/storage/usage.tsx+++ b/studio/pages/project/[ref]/storage/usage.tsx@@ -20,11 +20,11 @@ const PageLayout: NextPageWithLayout = () => {const { ui } = useStore()const project = ui.selectedProject- const kpsDisabled = useFlag('initWithoutKps')+ const kpsEnabled = useFlag('initWithKps')useEffect(() => {if (project && project.status === PROJECT_STATUS.INACTIVE) {- post(`${API_URL}/projects/${ref}/restore`, { kps_disabled: kpsDisabled })+ post(`${API_URL}/projects/${ref}/restore`, { kps_enabled: kpsEnabled })}}, [project])