This template uses Flipt Cloud as a feature flag management service to control whether the store is open or closed.
- Create a new Flipt Cloud account at https://flipt.cloud/
- Create a new environment called
apple-store-demo
- Create a new flag called
store-closed
- Set the flag to
true
You can then choose from one of the following two methods to use this repository:
Copy the .env.example
file in this directory to .env.local
(which will be ignored by Git):
cp .env.example .env.local
- Set the
FLIPT_CLOUD_API_KEY
environment variable to the API key for your Flipt Cloud environment. - Set the
FLIPT_CLOUD_URL
environment variable to the URL for your Flipt Cloud environment.
Next, install the dependencies and run Next.js in development mode:
npm install
npm run dev
Deploy it to the cloud with Vercel (Documentation).