Buckets:
| import { NextApiResponse } from "next"; | |
| export default async function exit(_, 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:
- 290 Bytes
- Xet hash:
- e41d163abf696c9437c71fb33043a4838263879a45cbc9f1ade15790435e619b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.