Skip to content

experimental embedding#14838

Merged
dferber90 merged 17 commits intomainfrom
embed-flag-definitions
Feb 6, 2026
Merged

experimental embedding#14838
dferber90 merged 17 commits intomainfrom
embed-flag-definitions

Conversation

@dferber90
Copy link
Contributor

@dferber90 dferber90 commented Feb 3, 2026

Adds experimental support for embedding Vercel Flags definitions during build.

When VERCEL_EXPERIMENTAL_EMBED_FLAG_DEFINITIONS=1 is set, the CLI scans environment variables for Vercel Flags SDK keys (prefixed with vf_) and fetches their flag definitions. The definitions are written to a synthetic @vercel/flags-definitions module in node_modules that can be imported at runtime.

@changeset-bot
Copy link

changeset-bot bot commented Feb 3, 2026

🦋 Changeset detected

Latest commit: 8bd4c70

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-domrgbboo.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-domrgbboo.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

🧪 Unit Test Strategy

Comparing: 4f4db9a8bd4c70 (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 1 (3%)
  1. vercel
Unaffected packages - 39 (98%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/koa
  24. @vercel/nestjs
  25. @vercel/next
  26. @vercel/node
  27. @vercel/oidc
  28. @vercel/oidc-aws-credentials-provider
  29. @vercel/python
  30. @vercel/python-analysis
  31. @vercel/redwood
  32. @vercel/related-projects
  33. @vercel/remix-builder
  34. @vercel/routing-utils
  35. @vercel/ruby
  36. @vercel/rust
  37. @vercel/static-build
  38. @vercel/static-config
  39. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Handled separately (Version Packages PRs or run-e2e-tests label)
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

@dferber90 dferber90 marked this pull request as ready for review February 6, 2026 15:24
@dferber90 dferber90 requested a review from a team as a code owner February 6, 2026 15:24
@dferber90 dferber90 merged commit 547356f into main Feb 6, 2026
128 checks passed
@dferber90 dferber90 deleted the embed-flag-definitions branch February 6, 2026 16:43
ijjk pushed a commit that referenced this pull request Feb 6, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## vercel@50.13.0

### Minor Changes

- Adds experimental support for embedding Vercel Flags definitions
during build. ([#14838](#14838))

When `VERCEL_EXPERIMENTAL_EMBED_FLAG_DEFINITIONS=1` is set, the CLI
scans environment variables for Vercel Flags SDK keys (prefixed with
`vf_`) and fetches their flag definitions. The definitions are written
to a synthetic `@vercel/flags-definitions` module in `node_modules` that
can be imported at runtime.

### Patch Changes

- Updated dependencies
\[[`a172b3c68ba75bf8f9e517fe476cebe2e32bdb8c`](a172b3c),
[`d59e76b47c3a491afe5dff6ee76224ed77ac8d74`](d59e76b)]:
    -   @vercel/next@4.15.25

## @vercel/next@4.15.25

### Patch Changes

- [next] Apply routes-manifest onMatchHeaders
([#14903](#14903))

- Make adapters flag explicit value for opt-in
([#14905](#14905))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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