• Web Application Firewall control now available with vercel.json

    You can now control Vercel’s Web Application Firewall (WAF) actions directly in vercel.json, alongside existing support in the dashboard, API, and terraform.

    The has and missing matchers have also been enhanced to support more expressive conditions across headers, rewrites, redirects, and routes. Matching options include:

    • String equality and inequality

    • Regular expressions

    • Prefixes and suffixes

    • Inclusion and exclusion from string arrays

    • Numeric comparisons

    The following example shows how to deny a request that is prefixed by a specific header:

    {
    "$schema": "https://openapi.vercel.sh/vercel.json",
    "routes": [
    {
    "src": "/(.*)",
    "has": [
    {
    "type": "header",
    "key": {
    "pre": "x-bad-header-"
    }
    }
    ],
    "mitigate": {
    "action": "deny"
    }
    }
    ]
    }

    Read more about Vercel's WAF and configuring WAF rules in vercel.json.

  • v0 Platform API now in beta

    v0 Platform is now in betav0 Platform is now in beta

    The v0 Platform API is now available in public beta. The v0 Platform API is a text-to-app API — it provides programmatic access to v0’s app generation pipeline:

    • Generating code for web apps from prompts

    • Structured parsing of generated code

    • Automatic error fixing

    • Link with a rendered preview

    This API also supports programmatic control of v0.dev, including creating and managing both chats and projects. We'll be bringing more of v0.dev's functionality into the Platform API soon.

    The v0 Platform API is designed for integration into development workflows, automation scripts, and third-party tools.

    Check out our TypeScript SDK and documentation to get started.