Eval Library
V
For VercelCode Assistant

Edge Middleware

Vercel · Vercel

Vercel evals — Edge Middleware (relift v3)

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

Client POST /api/upload 5MB JSON through middleware first; logs show 413 at edge.

Agent explains middleware 4MB body limit per docs, moves upload to Serverless Function route bypassing middleware or streams via dedicated API, documents limit table.

Pass / FailTool usehigh

Rubric criteria

  • Vercel
  • Devtools
  • Edge Middleware

Recommended for

VercelVercel customers

Works with

Related evals

Run this eval in your workspace

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