This sample application demonstrates how to use feature flags in a Next.js application. It compliments the blog post linked above and can be used as a code example when using ConfigCat feature flags in your Next.s application.
- An installation of Node.js version 18 or greater.
- A ConfigCat Account
- Clone this code repository:
[email protected]:configcat-labs/feature-flags-in-nextjs-sample.git
- Install the npm package dependencies:
npm install
- Start the development server using the below command, then click the link printed to the terminal to launch the sample app in your browser.
Replace the placeholder values in
pages/index.tsx
with your SDK and Feature Flag Key.
npm run dev
Useful links to technical resources.
- Next.js Documentation - Get started with Next.js
ConfigCat also supports many other frameworks and languages. Check out the full list of supported SDKs here.
You can also explore other code samples for various languages, frameworks, and topics here in the ConfigCat labs on GitHub.
Keep up with ConfigCat on X, Facebook, LinkedIn, and GitHub.
Contributions are welcome!