silverwolf-x's picture
download
raw
340 Bytes
import type { NextApiRequest, NextApiResponse } from "next";
export default async function handler(
_req: NextApiRequest,
res: NextApiResponse,
) {
// Exit Draft Mode by removing the cookie
res.setDraftMode({ enable: false });
// Redirect the user back to the index page.
res.writeHead(307, { Location: "/" });
res.end();
}

Xet Storage Details

Size:
340 Bytes
·
Xet hash:
4a625b88911bf5a7b787d24c3b719a884d4dc6dab00258814c113d2ca1401e74

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