Skip to content

Update LaunchDarkly examples for native Vercel Marketplace integration#1532

Open
mbrakken wants to merge 3 commits into
mainfrom
marcbrakken/ld-example
Open

Update LaunchDarkly examples for native Vercel Marketplace integration#1532
mbrakken wants to merge 3 commits into
mainfrom
marcbrakken/ld-example

Conversation

@mbrakken

Copy link
Copy Markdown

Summary

Updates the LaunchDarkly examples to use the new native LaunchDarkly Vercel Marketplace integration, alongside the upcoming @flags-sdk/launchdarkly v1.0.0 release.

The key change is that the Edge Config connection string is now exposed as EXPERIMENTATION_CONFIG (renamed from EDGE_CONFIG), matching the native Marketplace integration and other experimentation adapters (e.g. Statsig).

flags-sdk/launchdarkly

  • Bump @flags-sdk/launchdarkly ^0.3.2^1.0.0 (v1.0.0 reads EXPERIMENTATION_CONFIG by default)
  • .env.example: EDGE_CONFIGEXPERIMENTATION_CONFIG
  • README: Marketplace products deploy param + docs on enabling the Edge Config sync from the integration resource
  • Regenerated pnpm-lock.yaml

edge-middleware/feature-flag-launchdarkly

  • page.tsx: read connection string from EXPERIMENTATION_CONFIG
  • Deploy URL: replaced legacy integration-ids/edge-config-stores params with the Marketplace products param
  • README/link updates for the native Marketplace integration

Notes

  • toolbar/toolbar-launchdarkly is unaffected (uses LAUNCHDARKLY_SDK_KEY directly, no Edge Config).
  • Edge Config provisioning with the integration is handled by a separate change.

Update the LaunchDarkly Flags SDK and edge-middleware examples to use the
native LaunchDarkly Marketplace integration.

- Bump @flags-sdk/launchdarkly to ^1.0.0
- Rename EDGE_CONFIG to EXPERIMENTATION_CONFIG
- Use the Marketplace products deploy param instead of legacy integration-ids
- Document enabling the Edge Config sync from the integration resource
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app-dir-css-in-js Ready Ready Preview, Comment Jul 14, 2026 3:10pm
app-dir-i18n Ready Ready Preview, Comment Jul 14, 2026 3:10pm
app-dir-share-state Ready Ready Preview, Comment Jul 14, 2026 3:10pm
blob-starter Ready Ready Preview, Comment Jul 14, 2026 3:10pm
blob-sveltekit Error Error Jul 14, 2026 3:10pm
cms-webhook-update-redirects Ready Ready Preview, Comment Jul 14, 2026 3:10pm
container-images-demo Ready Ready Preview, Comment Jul 14, 2026 3:10pm
cron Ready Ready Preview, Comment Jul 14, 2026 3:10pm
custom-error-pages-app-dir Ready Ready Preview, Comment Jul 14, 2026 3:10pm
custom-error-pages-public-dir Ready Ready Preview, Comment Jul 14, 2026 3:10pm
django Ready Ready Preview, Comment Jul 14, 2026 3:10pm
django-notes Ready Ready Preview, Comment Jul 14, 2026 3:10pm
django-rest-framework-example Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-ab-testing-statsig Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-ab-testing-simple Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-add-header Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-basic-auth-password Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-bot-protection-botd Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-bot-protection-datadome Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-cookies Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-crypto Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-feature-flag-configcat Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-feature-flag-posthog Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-feature-flag-split Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-geolocation Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-hostname-rewrites Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-i18n Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-image-response Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-ip-blocking-datadome Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-json-response Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-jwt-authentication Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-power-parity-pricing Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-power-parity-pricing-strategies Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-query-params-filter Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-functions-redirects-upstash Error Error Jul 14, 2026 3:10pm
edge-geolocation-country-block Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-maintenance-page Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-middleware-modify-request-header Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-rewrites-upstash Ready Ready Preview, Comment Jul 14, 2026 3:10pm
edge-user-agent-based-rendering Ready Ready Preview, Comment Jul 14, 2026 3:10pm
example-express-bun Ready Ready Preview, Comment Jul 14, 2026 3:10pm
example-feature-flag-apple-store Ready Ready Preview, Comment Jul 14, 2026 3:10pm
example-hono-bun Ready Ready Preview, Comment Jul 14, 2026 3:10pm
example-nitro-bun Ready Ready Preview, Comment Jul 14, 2026 3:10pm
example-reduce-image-bandwidth-usage Ready Ready Preview, Comment Jul 14, 2026 3:10pm
examples Ready Ready Preview, Comment Jul 14, 2026 3:10pm
examples-q42o Error Error Jul 14, 2026 3:10pm
experimentation-statsig Ready Ready Preview, Comment Jul 14, 2026 3:10pm
express-ai-sdk-demo Ready Ready Preview, Comment Jul 14, 2026 3:10pm
fantix-examples-nextjs-fastapi Ready Ready Preview, Comment Jul 14, 2026 3:10pm
fastapi-ai-chat Error Error Jul 14, 2026 3:10pm
feature-flag-hypertune Ready Ready Preview, Comment Jul 14, 2026 3:10pm
feature-flag-launchdarkly Error Error Jul 14, 2026 3:10pm
feature-flag-optimizely Ready Ready Preview, Comment Jul 14, 2026 3:10pm
flags-sdk-flagsmith Ready Ready Preview, Comment Jul 14, 2026 3:10pm
flags-sdk-growthbook Ready Ready Preview, Comment Jul 14, 2026 3:10pm
flags-sdk-launchdarkly Error Error Jul 14, 2026 3:10pm
flags-sdk-openfeature Ready Ready Preview, Comment Jul 14, 2026 3:10pm
flags-sdk-posthog Ready Ready Preview, Comment Jul 14, 2026 3:10pm
flags-sdk-reflag Ready Ready Preview, Comment Jul 14, 2026 3:10pm
geolocation-script Ready Ready Preview, Comment Jul 14, 2026 3:10pm
hono Ready Ready Preview, Comment Jul 14, 2026 3:10pm
hono-ai-sdk Ready Ready Preview, Comment Jul 14, 2026 3:10pm
hono-mcp-example Ready Ready Preview, Comment Jul 14, 2026 3:10pm
i18n Ready Ready Preview, Comment Jul 14, 2026 3:10pm
kv-redis-starter Ready Ready Preview, Comment Jul 14, 2026 3:10pm
laurens-test Ready Ready Preview, Comment Jul 14, 2026 3:10pm
litellm-gateway-demo Ready Ready Preview, Comment Jul 14, 2026 3:10pm
microfrontends-docs Ready Ready Preview, Comment Jul 14, 2026 3:10pm
microfrontends-marketing Ready Ready Preview, Comment Jul 14, 2026 3:10pm
mint-nft Ready Ready Preview, Comment Jul 14, 2026 3:10pm
mintlify-docs-rewrite Error Error Jul 14, 2026 3:10pm
next-fastapi-monorepo Error Error Jul 14, 2026 3:10pm
nextjs-fastapi Error Error Jul 14, 2026 3:10pm
nextjs-fastapi-bindings Error Error Jul 14, 2026 3:10pm
nextjs-gin Error Error Jul 14, 2026 3:10pm
nitro Ready Ready Preview, Comment Jul 14, 2026 3:10pm
nitro-cached-handler Ready Ready Preview, Comment Jul 14, 2026 3:10pm
nitro-plugins Ready Ready Preview, Comment Jul 14, 2026 3:10pm
nitro-route-rules Ready Ready Preview, Comment Jul 14, 2026 3:10pm
nitro-websocket Ready Ready Preview, Comment Jul 14, 2026 3:10pm
nodejs-api Ready Ready Preview, Comment Jul 14, 2026 3:10pm
nuxt-websocket Ready Ready Preview, Comment Jul 14, 2026 3:10pm
nx-monorepo Ready Ready Preview, Comment Jul 14, 2026 3:10pm
postgres-drizzle Ready Ready Preview, Comment Jul 14, 2026 3:10pm
postgres-kysely Ready Ready Preview, Comment Jul 14, 2026 3:10pm
postgres-prisma Error Error Jul 14, 2026 3:10pm
postgres-starter Ready Ready Preview, Comment Jul 14, 2026 3:10pm
redirect-with-fallback Ready Ready Preview, Comment Jul 14, 2026 3:10pm
redirects-bloom-filter Ready Ready Preview, Comment Jul 14, 2026 3:10pm
rust-axum Ready Ready Preview, Comment Jul 14, 2026 3:10pm
rust-hello-world Ready Ready Preview, Comment Jul 14, 2026 3:10pm
rust-websocket Ready Ready Preview, Comment Jul 14, 2026 3:10pm
saas-microservices-api Ready Ready Preview, Comment Jul 14, 2026 3:10pm
saas-microservices-api-dashboard Ready Ready Preview, Comment Jul 14, 2026 3:10pm
saas-microservices-api-users Ready Ready Preview, Comment Jul 14, 2026 3:10pm
saas-microservices-dashboard Ready Ready Preview, Comment Jul 14, 2026 3:10pm
single-spa-content-microfrontend Ready Ready Preview, Comment Jul 14, 2026 3:10pm
single-spa-root-microfrontend Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-combining-data-fetching-strategies Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-image-fallback Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-image-offset Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-loading-web-fonts Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-microfrontends Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-microfrontends-docs Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-on-demand-isr Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-pagination-with-ssg Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-reuse-responses Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-script-component-ad Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-script-component-strategies Ready Ready Preview, Comment Jul 14, 2026 3:10pm
solutions-subdomains-auth Ready Ready Preview, Comment Jul 14, 2026 3:10pm
starter-test Error Error Jul 14, 2026 3:10pm
toolbar-feature-flags-sveltekit Ready Ready Preview, Comment Jul 14, 2026 3:10pm
toolbar-launchdarkly Ready Ready Preview, Comment Jul 14, 2026 3:10pm
toolbar-optimizely Ready Ready Preview, Comment Jul 14, 2026 3:10pm
toolbar-statsig Ready Ready Preview, Comment Jul 14, 2026 3:10pm
turborepo-hono-api Error Error Jul 14, 2026 3:10pm
turborepo-hono-web Ready Ready Preview, Comment Jul 14, 2026 3:10pm
vercel-plus-fastapi Ready Ready Preview Jul 14, 2026 3:10pm
vite-fastapi Error Error Jul 14, 2026 3:10pm
vue Ready Ready Preview, Comment Jul 14, 2026 3:10pm
xmcp-demo Ready Ready Preview, Comment Jul 14, 2026 3:10pm
14 Skipped Deployments
Project Deployment Actions Updated (UTC)
build-output-api-draft-mode Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-edge-functions Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-edge-middleware Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-image-optimization Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-isr Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-overrides Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-prerender-functions Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-routes Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-serverless-functions Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-static-files Ignored Ignored Preview Jul 14, 2026 3:10pm
build-output-api-wildcard Ignored Ignored Preview Jul 14, 2026 3:10pm
example-auth-with-ory Ignored Ignored Preview Jul 14, 2026 3:10pm
solutions-nx-monorepo Ignored Ignored Preview Jul 14, 2026 3:10pm
solutions-testing Ignored Ignored Preview Jul 14, 2026 3:10pm

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

The `vercel.ts` schema validation failed with the following message: `rewrites[0]` missing required property `destination`

Learn More: https://vercel.com/docs/concepts/projects/project-configuration

deployButton={{
customDeployUrl:
'https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/edge-middleware/feature-flag-launchdarkly&project-name=feature-flag-launchdarkly&repository-name=feature-flag-launchdarkly&integration-ids=oac_8DFUMlauSkqeQhdGHpL5xbWp&env=NEXT_PUBLIC_LD_CLIENT_SIDE_ID&env=EDGE_CONFIG&edge-config-stores=%7B%22EDGE_CONFIG%22%3A%7B%7D%7D',
'https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/edge-middleware/feature-flag-launchdarkly&project-name=feature-flag-launchdarkly&repository-name=feature-flag-launchdarkly&env=NEXT_PUBLIC_LD_CLIENT_SIDE_ID&products=%5B%7B%22integrationSlug%22%3A%22launchdarkly%22%2C%22productSlug%22%3A%22launchdarkly%22%2C%22type%22%3A%22integration%22%2C%22protocol%22%3A%22experimentation%22%7D%5D',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need NEXT_PUBLIC_LD_CLIENT_SIDE_ID anymore, we provide this as NEXT_PUBLIC_LAUNCHDARKLY_CLIENT_SIDE_ID

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, I think I even noticed this, but forgot while trying to get access to the account that the projects live in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants