Skip to content

Update LaunchDarkly Flags SDK template for Marketplace integration#1525

Open
Andrewjeska wants to merge 5 commits into
vercel:mainfrom
Andrewjeska:launchdarkly/manderjaska/REL-13054-update-template-for-marketplace
Open

Update LaunchDarkly Flags SDK template for Marketplace integration#1525
Andrewjeska wants to merge 5 commits into
vercel:mainfrom
Andrewjeska:launchdarkly/manderjaska/REL-13054-update-template-for-marketplace

Conversation

@Andrewjeska

@Andrewjeska Andrewjeska commented Jul 1, 2026

Copy link
Copy Markdown

Summary

Updates the flags-sdk/launchdarkly example to work cleanly with the LaunchDarkly integration on the Vercel Marketplace.

  • Deploy button now installs the LaunchDarkly Marketplace integration
  • Two server-side flag-source modes, selectable via env vars (Edge Config preferred when both are set):
    • Edge Config mode (recommended): reads flags from a Vercel Edge Config store kept in sync by the integration (EXPERIMENTATION_CONFIG)
    • Server SDK mode: reads flags directly from LaunchDarkly via a server SDK key (LAUNCHDARKLY_SDK_KEY), no Edge Config required. Adds lib/launchdarkly-adapter.ts.
  • Docs & .env.example rewritten to explain which vars the integration injects vs. which you set, both modes, and a manual-setup path (including generating FLAGS_SECRET).
  • Made several previously-required env fields optional.

Testing

  • pnpm build / local dev in both Edge Config and server SDK modes.

@Andrewjeska Andrewjeska changed the title Update LaunchDarkly Flags SDK template for Marketplace integration [WIP] Update LaunchDarkly Flags SDK template for Marketplace integration Jul 1, 2026
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@Andrewjeska is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@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)
mintlify-docs-rewrite Error Error Jul 1, 2026 5:17pm

@socket-security

socket-security Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​launchdarkly/​node-server-sdk@​9.11.3991009094100

View full report

Comment thread flags-sdk/launchdarkly/.env Outdated
@Andrewjeska Andrewjeska force-pushed the launchdarkly/manderjaska/REL-13054-update-template-for-marketplace branch from 289a8ec to 6289a25 Compare July 1, 2026 16:16

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.

I think this is just the linter

@vercel

vercel Bot commented Jul 1, 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

* This adapter supports two ways of reading LaunchDarkly flags, and picks one
* automatically based on which environment variables are present:
*
* 1. Edge Config mode (`EDGE_CONFIG` or `EXPERIMENTATION_CONFIG`, plus

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.

This template originally had EDGE_CONFIG, probably the connected account integration expected that env var. let me know what's the preferred env var now.

Comment on lines +120 to +124
2. Generate a `FLAGS_SECRET` yourself instead of relying on the deploy prompt:

```bash
node -e "console.log(crypto.randomBytes(32).toString('base64url'))"
```

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.

I'm not too familiar, can you just do this?

@Andrewjeska Andrewjeska changed the title [WIP] Update LaunchDarkly Flags SDK template for Marketplace integration Update LaunchDarkly Flags SDK template for Marketplace integration Jul 1, 2026
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