Skip to content
Snippets Groups Projects
Commit 8e544c27 authored by David Schwarzmann's avatar David Schwarzmann
Browse files

Remove preview routes since next-drupal shall not get used

parent 27f8b67d
No related branches found
No related tags found
No related merge requests found
import { NextApiResponse } from "next"
export default async function exit(_, response: NextApiResponse) {
response.clearPreviewData()
response.writeHead(307, { Location: "/" })
response.end()
}
import { DrupalPreview } from "next-drupal"
export default DrupalPreview()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment