Skip to content

[vercel-flags-core] add vercel client mode - #498

Closed
luismeyer wants to merge 18 commits into
mainfrom
flags-version-header
Closed

luismeyer wants to merge 18 commits into
mainfrom
flags-version-header

Conversation

@luismeyer

Copy link
Copy Markdown
Member

Adds a new client mode vercel. This mode doesn't stream or poll but instead receives a header with the current datafile updatedAt time.

We compare the current data timestamp either from bundled definitions or from a previous fetch with the timestamp from the header and either: serve the data directly, fetch in the background or do a blocking fetchl

@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
flags-playground Ready Ready Preview, v0 Sep 22, 2026 12:10pm UTC
flags-sdk-dev Ready Ready Preview, v0 Sep 22, 2026 12:10pm UTC
flags-sdk-snippets Ready Ready Preview, v0 Sep 22, 2026 12:10pm UTC
flags-sdk-sveltekit-snippets Ready Ready Preview, v0 Sep 22, 2026 12:10pm UTC
shirt-shop Ready Ready Preview, v0 Sep 22, 2026 12:10pm UTC
shirt-shop-api Ready Ready Preview, v0 Sep 22, 2026 12:10pm UTC

Comment thread packages/vercel-flags-core/src/controller/header-source.ts Outdated
Comment thread packages/vercel-flags-core/src/controller/header-source.ts Outdated
Comment thread packages/vercel-flags-core/src/controller/header-source.ts Outdated
Comment thread packages/vercel-flags-core/src/controller/header-source.ts Outdated
Comment thread packages/vercel-flags-core/src/controller/header-source.ts Outdated

@dferber90 dferber90 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

so excited for this, but let's align on how we surface this new functionality

Comment thread packages/vercel-flags-core/src/controller/index.ts
Comment thread packages/vercel-flags-core/src/types.ts
Comment thread packages/vercel-flags-core/README.md Outdated
Comment thread packages/vercel-flags-core/src/controller/index.ts Outdated

This branch was successfully deployed

6 active deployments
Preview – flags-sdk-dev — ea4d7de6 Deployed Sep 22, 2026 by vercel[bot]
Preview – flags-sdk-snippets — ea4d7de6 Deployed Sep 22, 2026 by vercel[bot]
Preview – flags-sdk-sveltekit-snippets — ea4d7de6 Deployed Sep 22, 2026 by vercel[bot]
Preview – flags-playground — ea4d7de6 Deployed Sep 22, 2026 by vercel[bot]
Preview – shirt-shop — ea4d7de6 Deployed Sep 22, 2026 by vercel[bot]
Preview – shirt-shop-api — ea4d7de6 Deployed Sep 22, 2026 by vercel[bot]
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.

3 participants