• Blog
  • Documentation
  • Courses
  • Changelog
  • AI Starters
  • UI Kit
  • FAQ
  • Supamode
    New
  • Pricing

Launch your next SaaS in record time with Makerkit, a React SaaS Boilerplate for Next.js and Supabase.

Makerkit is a product of Makerkit Pte Ltd (registered in the Republic of Singapore)Company Registration No: 202407149CFor support or inquiries, please contact us

About
  • FAQ
  • Contact
  • Verify your Discord
  • Consultation
  • Open Source
  • Become an Affiliate
Product
  • Documentation
  • Blog
  • Changelog
  • UI Blocks
  • Figma UI Kit
  • AI SaaS Starters
License
  • Activate License
  • Upgrade License
  • Invite Member
Legal
  • Terms of License
    • Setting up your Firebase Project
    • Feature Flags
    • Setting up Firebase Functions

Setting up Feature Flags with Next.js and Firebase

The Makerkit feature flagging system allows you to control the visibility of certain features in your application. This is useful for testing new features, or for rolling out features to a subset of your users.

Makerkit uses feature flags to let you control the visibility of certain features in your application. We use a feature flag when we think a feature may not be 100% ready or when it's too opinionated and we want to give you the option to turn it off.

NB: In following releases, some flags may be removed and the feature will be enabled by default. Other flags may be removed and the feature will be removed as well.

How it works

By default, Makerkit uses the following feature flags, defined in the src/configurations.ts.ts file:

ts
{
enableThemeSwitcher: true,
enableAccountDeletion: false,
enableOrganizationDeletion: false,
}

Enable Theme Switcher

The theme switcher allows users to switch between light and dark mode. It's enabled by default, but you can disable it by setting the enableThemeSwitcher flag to false.

Enable Account Deletion

The account deletion feature allows users to delete their account.

It's disabled by default, but you can enable it by setting the enableAccountDeletion flag to true or setting the environment variable NEXT_PUBLIC_ENABLE_ACCOUNT_DELETION to true.

text
NEXT_PUBLIC_ENABLE_ACCOUNT_DELETION=true

Enable Organization Deletion

The organization deletion feature allows users to delete their organization.

It's disabled by default, but you can enable it by setting the enableOrganizationDeletion flag to true or setting the environment variable NEXT_PUBLIC_ENABLE_ORGANIZATION_DELETION to true.

text
NEXT_PUBLIC_ENABLE_ORGANIZATION_DELETION=true
On this page
  1. How it works
    1. Enable Theme Switcher
    2. Enable Account Deletion
    3. Enable Organization Deletion