Vercel News

Vercel Flags现在支持JSON值

7.5内容质量
Vercel Flags现在支持JSON值

TL;DR · AI 摘要

Vercel Flags新增支持JSON值,可将多个相关标志合并为一个功能标志。

核心要点

  • Vercel Flags现在支持存储JSON值,扩展了布尔、字符串和数字类型的支持。
  • 通过JSON值,可以将原本需要多个标志的场景简化为单一功能标志。
  • 此更新有助于更高效地进行A/B测试和复杂配置管理。

结构提纲

按章节快速跳转。

  1. 介绍Vercel Flags新增支持JSON值的功能。

  2. 解释JSON值如何提升标志管理的灵活性和效率。

  3. 展示如何使用JSON值进行A/B测试和模型性能评估。

思维导图

用一张图看清主题之间的关系。

查看大纲文本(无障碍 / 无 JS 友好)
  • Vercel Flags支持JSON值
    • 新增JSON值支持
    • 简化多个标志管理
    • 提升A/B测试效率

金句 / Highlights

值得收藏与分享的关键句。

#Vercel#功能标志#JSON
打开原文

Vercel Flags now supports JSON values - Vercel

Skip to content

[](http://vercel.com/home)

  • Products
  • ##### Core Platform
  • Resources
  • ##### Company
  • ##### Learn
  • ##### Open Source
  • Solutions
  • ##### Use Cases
  • ##### Tools
  • ##### Users

Ask AI

Ask AILog In

Sign UpSign Up

Blog/Changelog

Vercel Flags now supports JSON values

![Image 1 Dominik Ferber Software Engineer](https://twitter.com/dferber90)![Image 2 Chris Widmaier Engineering Manager](https://twitter.com/chriswdmr)

1 min read

Copy URL

Copied to clipboard!

May 7, 2026

You can now store JSON values in Vercel Flags, extending the existing support for boolean, string, and number values. This allows you to collapse what used to take several related flags into a single feature flag.

For example, to A/B test how a different model performs, you can now define a single model flag. This allows you to manage one flag that serves the full object rather than managing ai_model, ai_temperature, and ai_max_tokens separately:

code
1// Variant A2{3  "id": "claude-sonnet-4-6",4  "temperature": 0.7, 5  "maxTokens": 1024,6  "systemPrompt": "You are a helpful shopping assistant."7}8
9// Variant B10{11  "id": "claude-opus-4-6",12  "temperature": 0.8, 13  "maxTokens": 2048,14  "systemPrompt": "You help with shopping."15}

A feature flag holding JSON configuration in its variants

Use Vercel Flags to progressively route traffic to a new model, A/B test, or quickly switch models in case a provider is having issues.

Try it out or learn more about Vercel Flags.

Ready to deploy?Start building with a free account. Speak to an expert for your _Pro_ or Enterprise needs.

Start DeployingTalk to an Expert

Explore Vercel Enterprise with an interactive product tour, trial, or a personalized demo.

Explore Enterprise

Get Started

Build

Scale

Secure

Resources

Learn

Frameworks

SDKs

Use Cases

Company

Community

[](http://vercel.com/home)

Loading status…Select a display theme:system light dark