Commit d43deee9 authored by Balázs Orbán's avatar Balázs Orbán

chore(examples): fix lint

parent 3caebdef
export default function exit (_, res) {
export default function exit(_, res) {
// Exit the current user from "Preview Mode". This function accepts no args.
res.clearPreviewData()
......
import { getPreviewPostBySlug } from '@/lib/api'
export default async function preview(req, res) {
// Check the secret and next parameters
// Check the secret and next parameters
// This secret should only be known to this API route and the CMS
if (
req.query.secret !== process.env.COSMIC_PREVIEW_SECRET ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment