Monday, January 22nd 2024
Protect your Edge Config with a JSON schema
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F55azvl94SI9KfhUs3GmkP3%2F40eeac4b470b53fd5dc2396e5065d1a8%2FSchema_Protection_Light.png&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2FBnBrhOW17TbeLJ53qc2mU%2Fcc8b755366b9a60cdb16068932c198f9%2FSchema_Protection_Dark.png&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
Posted by
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F55azvl94SI9KfhUs3GmkP3%2F40eeac4b470b53fd5dc2396e5065d1a8%2FSchema_Protection_Light.png&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2FBnBrhOW17TbeLJ53qc2mU%2Fcc8b755366b9a60cdb16068932c198f9%2FSchema_Protection_Dark.png&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
You can now protect your Edge Config with a JSON schema. Use schema protection to prevent unexpected updates that may cause bugs or downtime.
Edge Config is a low latency data store accessed from Vercel Functions or Edge Middleware. It is ideal for storing experimentation data like feature flags and A/B testing cohorts, as well as configuration data for Middleware routing rules like redirects or blocklists.
To protect an Edge Config with a schema:
- Select the Storage tab in the dashboard and then create or select your Edge Config
- Toggle the Schema button to open the schema editing tab. Enter your JSON schema into the editor, and Vercel will use the schema to validate your data in real-time
- Click Save. This will save changes to both the schema and data
Check out the documentation to learn more.