Buckets:
silverwolf-x/project / packages /next-codemod /transforms /__testfixtures__ /middleware-to-proxy /async-function.input.ts
| import { NextResponse, NextRequest } from 'next/server' | |
| export async function middleware(request: NextRequest) { | |
| const response = await fetch('/api/auth') | |
| return NextResponse.redirect(new URL('/home', request.url)) | |
| } | |
| export const config = { | |
| matcher: '/about/:path*', | |
| } |
Xet Storage Details
- Size:
- 276 Bytes
- Xet hash:
- be2dd527f259c38990dccf60a1f57679286cefc5ee86fa083231b5714dacfa11
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.