Buckets:
| --- | |
| title: Deprecated Proxy API Signature | |
| --- | |
| ## Why This Error Occurred | |
| Your application is using a Proxy function that is using parameters from the deprecated API. | |
| ```ts filename="proxy.ts" | |
| import { NextResponse } from 'next/server' | |
| export function proxy(event) { | |
| if (event.request.nextUrl.pathname === '/blocked') { | |
| event.respondWith( | |
| new NextResponse(null, { | |
| status: 403, | |
| }) | |
| ) | |
| } | |
| } | |
| ``` | |
| ## Possible Ways to Fix It | |
| Update to use the new API for Proxy: | |
| ```ts filename="proxy.ts" | |
| import { NextResponse } from 'next/server' | |
| export function proxy(request) { | |
| if (request.nextUrl.pathname === '/blocked') { | |
| return new NextResponse(null, { | |
| status: 403, | |
| }) | |
| } | |
| } | |
| ``` | |
Xet Storage Details
- Size:
- 716 Bytes
- Xet hash:
- 14b29aba57c6cfd876c7a09ae51abf48f63b56430611bc3c7671d982815bbc79
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.