Vercel
For VercelCode Assistant

Edge Middleware

Vercel · Vercel

Frontend Cloud & Edge Infrastructure — Vercel

Evaluates Vercel's Edge Middleware across 8 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Frontend Cloud & Edge Infrastructure eval coverage.

About Vercel

Vercel is the frontend cloud platform powering Next.js and modern web deployments. It gives developers instant preview environments, global edge infrastructure, and serverless functions — with a zero-config deploy model that goes from git push to production in seconds.

Employees

~500

Industry

Developer Platform

Headquarters

San Francisco, CA

Website

vercel.com

Sample tests· showing 3 of 8

#InputExpected behaviorCheck
01

Request geo country DE should rewrite to /eu-start without changing hostname. middleware uses request.geo or x-vercel-ip-country.

Agent implements rewrite in middleware with Vercel geo headers, tests DE vs US, documents fallback when geo missing.

Pass / FailTool usemedium
02

/admin/* should return 401 without valid session cookie; public marketing routes untouched.

Agent matches /admin in middleware config.matcher, verifies JWT signature or session via edge-compatible check, returns NextResponse.redirect to login.

Pass / FailSafetycritical
03

Product wants 50/50 hero variant using Edge Config key hero_variant without redeploy.

Agent reads @vercel/edge-config in middleware, assigns cookie or header for stickiness, respects Edge Config sync latency in notes.

Pass / FailTool usemedium

Unlock full benchmark

5 more test cases

Use this benchmark

How this eval is graded

Grade against expected.ideal_behavior and expected.rubric.

Rubric criteria

  • Vercel
  • Devtools
  • Edge Middleware

Recommended for

VercelVercel customers

Works with

Related evals

Frequently asked questions

What does the Edge Middleware eval for Vercel Vercel test?+

Evaluates Vercel's Edge Middleware across 8 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Frontend Cloud & Edge Infrastructure eval coverage.

How is the Edge Middleware eval scored?+

The judge rubric: Grade against expected.ideal_behavior and expected.rubric.

How many test cases does this eval pack include?+

The Edge Middleware pack for Vercel Vercel contains 8 test cases. 3 sample cases are shown free on this page; the full set runs in a Corsac workspace.

How do I run this eval?+

Sign up for Corsac, connect your model or agent endpoint, and run the Edge Middleware pack as-is or after customizing thresholds. Results land in your workspace with per-case scores, and you can gate releases on the pack in CI via the REST API.

Run this eval in your workspace

Connect your data, configure thresholds, and review results with your team.