Vercel Flags现在支持JSON值

TL;DR · AI 摘要
Vercel Flags新增支持JSON值,可将多个相关标志合并为一个功能标志。
核心要点
- Vercel Flags现在支持存储JSON值,扩展了布尔、字符串和数字类型的支持。
- 通过JSON值,可以将原本需要多个标志的场景简化为单一功能标志。
- 此更新有助于更高效地进行A/B测试和复杂配置管理。
结构提纲
按章节快速跳转。
- §引言
介绍Vercel Flags新增支持JSON值的功能。
解释JSON值如何提升标志管理的灵活性和效率。
展示如何使用JSON值进行A/B测试和模型性能评估。
思维导图
用一张图看清主题之间的关系。
查看大纲文本(无障碍 / 无 JS 友好)
- Vercel Flags支持JSON值
- 新增JSON值支持
- 简化多个标志管理
- 提升A/B测试效率
金句 / Highlights
值得收藏与分享的关键句。
您现在可以在Vercel Flags中存储JSON值。
这允许将原本需要多个相关标志的场景简化为单一功能标志。
例如,为了A/B测试不同模型的性能,您现在可以定义一个`model`。
Vercel Flags now supports JSON values - Vercel
[](http://vercel.com/home)
- Products
- ##### AI Cloud
- AI Gateway One endpoint, all your models
- Sandbox Isolated, safe code execution
- Vercel Agent An agent that knows your stack
- AI SDK The AI Toolkit for TypeScript
- v0 Build applications with AI
- ##### Core Platform
- CI/CD Helping teams ship 6× faster
- Content Delivery Fast, scalable, and reliable
- Fluid Compute Servers, in serverless form
- Workflow Long-running workflows at scale
- Observability Trace every step
- ##### Security
- Bot Management Scalable bot protection
- BotID Invisible CAPTCHA
- Platform Security DDoS Protection, Firewall
- Web Application Firewall Granular, custom protection
- Resources
- ##### Company
- Customers Trusted by the best teams
- Blog The latest posts and changes
- Changelog See what shipped
- Press Read the latest news
- Events Join us at an event
- ##### Learn
- Docs Vercel documentation
- Academy Linear courses to level up
- Knowledge Base Find help quickly
- Community Join the conversation
- ##### Open Source
- Next.js The native Next.js platform
- Nuxt The progressive web framework
- Svelte The web’s efficient UI framework
- Turborepo Speed with Enterprise scale
- Solutions
- ##### Use Cases
- AI Apps Deploy at the speed of AI
- Composable Commerce Power storefronts that convert
- Marketing Sites Launch campaigns fast
- Multi-tenant Platforms Scale apps with one codebase
- Web Apps Ship features, not infrastructure
- ##### Tools
- Marketplace Extend and automate workflows
- Templates Jumpstart app development
- Partner Finder Get help from solution partners
- ##### Users
Ask AI
Ask AILog In
Vercel Flags now supports JSON values

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:
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.
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