import { cookies, draftMode } from "next/headers";

export async function POST() {
  (await draftMode()).disable();
  (await cookies()).delete("preview-token");
  return new Response(null, { status: 204 });
}
