Routing Middleware
An edge middleware capability provided by Vercel that runs on nodes closer to users. It can execute logic such as rewrites, redirects and authentication before requests reach the origin or functions, and it shares geolocation context with Vercel Functions.
Timeline (last 90 days)
Routing Middleware is the edge middleware capability provided by Vercel, running on nodes closer to users, and can execute logic such as rewrites, redirects, and authentication before a request reaches the origin or a function.
Routing Middleware and Vercel Functions share the same geolocation context, so the location information read via geolocation() or request headers is consistent between the two.
Vercel's routing middleware officially supports Python.
Vercel routing middleware excels at path-level redirects and rewrites, unified header injection, and path-based routing decisions; it is not suited to carrying heavyweight business logic, because it cannot access the main application's runtime context and should not perform time-consuming operations such as database queries.
All Facts (4)
Routing Middleware is the edge middleware capability provided by Vercel, running on nodes closer to users, and can execute logic such as rewrites, redirects, and authentication before a request reaches the origin or a function.
50%UnverifiedRouting Middleware and Vercel Functions share the same geolocation context, so the location information read via geolocation() or request headers is consistent between the two.
50%UnverifiedVercel routing middleware excels at path-level redirects and rewrites, unified header injection, and path-based routing decisions; it is not suited to carrying heavyweight business logic, because it cannot access the main application's runtime context and should not perform time-consuming operations such as database queries.
50%UnverifiedVercel's routing middleware officially supports Python.
50%