LaunchDarkly Integration example

LaunchDarkly Integration example

Learn how to set up the LaunchDarkly integration to read flags from Edge Config

0

boilerplate.detail.metadata.lastUpdated

il y a 4 mois

R

boilerplate.detail.metadata.author

Renaud

boilerplate.detail.metadata.price

boilerplate.detail.metadata.free

npx boilerapp feature-flag-launchdarkly

Documentation

feature-flag-launchdarkly example

This example shows how to use the LaunchDarkly integration with Next.js.

ℹ️ The LaunchDarkly integration requires a LaunchDarkly enterprise account.

You will need to provide the NEXT_PUBLIC_LD_CLIENT_SIDE_ID environment variable. Fill it with your client-side ID from LaunchDarkly.

LaunchDarkly wills sync your feature flags into an Edge Config, which you can set in the integration. Note that the same Edge Config also needs to be linked to this project via the EDGE_CONFIG environment variable. If you clone this template, this will be set up for you automatically when you select the Edge Config.

Demo

https://feature-flag-launchdarkly.vercel.app

How to Use

You can choose from one of the following two methods to use this repository:

One-Click Deploy

Deploy the example using Vercel:

Deploy with Vercel

Clone and Deploy

Execute create-next-app with pnpm to bootstrap the example:

pnpm create next-app --example https://github.com/vercel/examples/tree/main/edge-middleware/feature-flag-launchdarkly

Next, run Next.js in development mode:

pnpm dev

Deploy it to the cloud with Vercel (Documentation).

boilerplate.detail.sections.discussion

Comments (0)

FAQ

Frequently Asked Questions

Have a question? We have the answers. If you can't find what you're looking for, feel free to contact us.

Boilerapp is a community platform dedicated to sharing boilerplates, starter kits, and project templates for developers. Our goal is simple: save you time on initial setup so you can code what really matters. Whether you are looking for a simple code base or a complete SaaS project, you will find it here.

Have more questions?

Our team is here to help. Contact us and we will get back to you as soon as possible.