mirror of
https://github.com/vercel/commerce.git
synced 2025-07-30 21:51:21 +00:00
.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
12 lines
199 B
TypeScript
12 lines
199 B
TypeScript
import { draftMode } from "next/headers";
|
|
|
|
export async function GET() {
|
|
draftMode().disable();
|
|
|
|
return new Response(null, {
|
|
status: 307,
|
|
headers: {
|
|
Location: `/`,
|
|
},
|
|
})
|
|
} |