(req: NextRequest)
| 11 | } |
| 12 | |
| 13 | export async function middleware(req: NextRequest) { |
| 14 | if (!process.env.EDGE_CONFIG || !process.env.EDGE_CONFIG_SPLIT_ITEM_KEY) { |
| 15 | req.nextUrl.pathname = `/missing-edge-config` |
| 16 | return NextResponse.rewrite(req.nextUrl) |
| 17 | } |
| 18 | |
| 19 | if (!(await has(process.env.EDGE_CONFIG_SPLIT_ITEM_KEY))) { |
| 20 | req.nextUrl.pathname = `/missing-split-item` |
| 21 | return NextResponse.rewrite(req.nextUrl) |
| 22 | } |
| 23 | } |
nothing calls this directly
no outgoing calls
no test coverage detected