Skip to content

[adapter-launchdarkly] support native Marketplace integration#418

Open
mbrakken wants to merge 1 commit into
mainfrom
marcbrakken/ld-provider-marketpalce
Open

[adapter-launchdarkly] support native Marketplace integration#418
mbrakken wants to merge 1 commit into
mainfrom
marcbrakken/ld-provider-marketpalce

Conversation

@mbrakken

@mbrakken mbrakken commented Jul 1, 2026

Copy link
Copy Markdown

Summary

Updates the @flags-sdk/launchdarkly adapter to support LaunchDarkly's new native Marketplace integration.

When Edge Config is enabled for the collection, the native integration exposes the connection string as EXPERIMENTATION_CONFIG rather than the EDGE_CONFIG var used by the legacy Vercel integration. The native integration also does not currently provide LAUNCHDARKLY_PROJECT_SLUG.

Changes

  • Edge Config connection string: the adapter now reads EXPERIMENTATION_CONFIG first and falls back to EDGE_CONFIG for the legacy integration. The missing-env error message was updated accordingly.
  • Optional project slug: LAUNCHDARKLY_PROJECT_SLUG / projectSlug is now optional. It is only used to deep-link flags to the LaunchDarkly dashboard (the adapter's origin). When it is not set, flag evaluation is unaffected, but variation().origin is undefined.
  • Docs (README + provider mdx) and tests updated. Also fixed a pre-existing README typo (ldClientSideKeyclientSideId).

Breaking changes

Released as a minor bump (semver-appropriate for a 0.x package):

  • If both EXPERIMENTATION_CONFIG and EDGE_CONFIG are set to different values, EXPERIMENTATION_CONFIG now takes precedence.
  • The missing-env error text changed to LaunchDarkly Adapter: Missing EXPERIMENTATION_CONFIG or EDGE_CONFIG environment variable.
  • variation().origin can now be undefined (previously always a function) when no projectSlug is configured.

Test plan

  • pnpm test (10/10 pass)
  • pnpm type-check
  • pnpm check (biome)

- Read the Edge Config connection string from EXPERIMENTATION_CONFIG,
  falling back to EDGE_CONFIG for the legacy Vercel integration
- Make LAUNCHDARKLY_PROJECT_SLUG / projectSlug optional; it is only used
  to deep-link flags to the LaunchDarkly dashboard
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
flags-playground Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 6:12pm
flags-sdk-dev Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 6:12pm
flags-sdk-snippets Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 6:12pm
flags-sdk-sveltekit-snippets Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 6:12pm
shirt-shop Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 6:12pm
shirt-shop-api Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 6:12pm

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.

1 participant