1
0
mirror of https://github.com/vercel/commerce.git synced 2025-07-30 21:51:21 +00:00
Files
.github
.vscode
app
(site)
(studio)
api
exit-preview
route.ts
preview
favicon.ico
globals.css
robots.ts
sitemap.ts
components
helpers
lib
messages
public
.env.example
.eslintrc.js
.gitignore
.npmrc
.nvmrc
.prettierignore
README.md
components.json
i18n-config.ts
license.md
middleware.ts
next.config.js
package.json
playwright.config.ts
pnpm-lock.yaml
postcss.config.js
prettier.config.js
sanity.config.ts
tailwind.config.js
tsconfig.json
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: `/`,
},
})
}