MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / middleware

Function middleware

app/src/middleware.ts:5–11  ·  view source on GitHub ↗
(req: NextRequest)

Source from the content-addressed store, hash-verified

3import { middleware as cspMiddleware } from "./middleware/csp";
4
5export function middleware(req: NextRequest) {
6 // Run HTTPS redirect middleware
7 httpsRedirectMiddleware(req);
8
9 // Check if CSP should be applied
10 return cspMiddleware(req);
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected