silverwolf-x's picture
download
raw
479 Bytes
import { draftMode } from "next/headers";
import { NextResponse } from "next/server";
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const path = searchParams.get("path");
draftMode().disable();
const response = NextResponse.redirect(
`${process.env.NEXT_PUBLIC_BASE_URL}${path}`,
);
response.headers.set(
"Set-Cookie",
`wp_jwt=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT;`,
);
return response;
}

Xet Storage Details

Size:
479 Bytes
·
Xet hash:
342da6102b22e20ee2a877f39dc6da17c8c235f34af1d010b2352f4d89a75423

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.