Menu

Configure weighted traffic splits for Vercel Flags from the Vercel CLI - Vercel
📰
0

Configure weighted traffic splits for Vercel Flags from the Vercel CLI - Vercel

Vercel News·Chris Widmaier·4 days ago
#97AU1KtS
#vercel#flags#split#weight#traffic#photo
Reading 0:00
15s threshold

You can now configure weighted traffic splits for Vercel Flags with the new vercel flags split command in the Vercel CLI. This allows you to send a percentage of traffic to one variant and the rest to another.

Run the command interactively, or pass the environment, bucketing attribute, and variant weights as flags:

vercel flags split redesigned-checkout \

--environment production \

--by user.id \

--weight off=95 \

--weight on=5

Sets a 95/5 weight split on redesigned-checkout for production, bucketing by user.id

Update to the latest version of the Vercel CLI and read the documentation to get started.

Read More