Skip to content

configcat-labs/feature-flags-in-nextjs-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Feature Flags in a Next.js Application Sample App

Read the blog post here

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.

Build & Run

Prerequisites

Running the sample app

  1. Clone this code repository:
[email protected]:configcat-labs/feature-flags-in-nextjs-sample.git
  1. Install the npm package dependencies:
npm install
  1. 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

Learn more

Useful links to technical resources.

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.

Author

Contributions

Contributions are welcome!