mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 22:16:58 +00:00
12 lines
206 B
TypeScript
12 lines
206 B
TypeScript
import { draftMode } from 'next/headers';
|
|
|
|
export async function GET() {
|
|
draftMode().disable();
|
|
|
|
return new Response(null, {
|
|
status: 307,
|
|
headers: {
|
|
Location: `/`,
|
|
},
|
|
})
|
|
} |