Skip to content

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

Add feature flag for disabling project creation

Joshen Lim1dcec1f493f5
diff --git a/studio/components/ui/InformationBox.tsx b/studio/components/ui/InformationBox.tsx
index 93a91f7f45e..7f3aa8e2dfa 100644
--- a/studio/components/ui/InformationBox.tsx
+++ b/studio/components/ui/InformationBox.tsx
@@ -60,7 +60,7 @@ const InformationBox: FC<Props> = ({
}`}
style={{ maxHeight: isExpanded ? 500 : 0 }}
>
- <p className="text-scale-1100 text-sm">{description}</p>
+ <div className="text-scale-1100 text-sm">{description}</div>
{url && (
<a
diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsx
index e370d067e96..77828623cca 100644
--- a/studio/pages/new/[slug].tsx
+++ b/studio/pages/new/[slug].tsx
@@ -24,7 +24,7 @@ import {
DEFAULT_FREE_PROJECTS_LIMIT,
PRICING_TIER_PRODUCT_IDS,
} from 'lib/constants'
-import { useStore, withAuth, useSubscriptionStats } from 'hooks'
+import { useStore, useFlag, withAuth, useSubscriptionStats } from 'hooks'
import { WizardLayoutWithoutAuth } from 'components/layouts'
import Panel from 'components/to-be-cleaned/Panel'
@@ -60,6 +60,7 @@ const Wizard: NextPageWithLayout = () => {
const { app, ui } = useStore()
const subscriptionStats = useSubscriptionStats()
+ const projectCreationDisabled = useFlag('disableProjectCreation')
const [projectName, setProjectName] = useState('')
const [dbPass, setDbPass] = useState('')
@@ -192,11 +193,6 @@ const Wizard: NextPageWithLayout = () => {
}
}
- /**
- * Disable project creation override
- */
- const projectCreationDisabled = false
-
return (
<Panel
hideHeaderStyling