Skip to content

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

Open
luismeyer wants to merge 10 commits into
mainfrom
flags-version-header
Open

luismeyer wants to merge 10 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 16, 2026 11:21am UTC
flags-sdk-dev Ready Ready Preview, v0 Sep 16, 2026 11:21am UTC
flags-sdk-snippets Ready Ready Preview, v0 Sep 16, 2026 11:21am UTC
flags-sdk-sveltekit-snippets Ready Ready Preview, v0 Sep 16, 2026 11:21am UTC
shirt-shop Ready Ready Preview, v0 Sep 16, 2026 11:21am UTC
shirt-shop-api Ready Ready Preview, v0 Sep 16, 2026 11:21am 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/prepare-flags-definitions/src/index.ts Fixed
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