1
0
mirror of https://github.com/vercel/commerce.git synced 2025-07-28 04:31:22 +00:00
Files
commerce/app/api/exit-preview/route.ts
2023-08-14 23:22:54 +02:00

12 lines
199 B
TypeScript

import { draftMode } from "next/headers";
export async function GET() {
draftMode().disable();
return new Response(null, {
status: 307,
headers: {
Location: `/`,
},
})
}