d3704a66f8
* added graphcms * Updated readme and environment variables * Removed gitignore * Updated tailwind config * Some fixes in pages * Updated api endpoints * lint fix * Updated readme * Updated og image * Updated cms examples to include this one * Added example to docs * Added preview demo link * Updated step Co-authored-by: Luis Alvarez <luis@vercel.com>
8 lines
254 B
JavaScript
8 lines
254 B
JavaScript
export default async function handler(_, res) {
|
|
// Exit the current user from "Preview Mode". This function accepts no args.
|
|
res.clearPreviewData()
|
|
|
|
// Redirect the user back to the index page.
|
|
res.writeHead(307, { Location: '/' })
|
|
res.end()
|
|
}
|