mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
9 lines
247 B
TypeScript
9 lines
247 B
TypeScript
import { defineEnableDraftMode } from "next-sanity/draft-mode";
|
|
|
|
import { client } from "@/sanity/lib/client";
|
|
import { token } from "@/sanity/lib/token";
|
|
|
|
export const { GET } = defineEnableDraftMode({
|
|
client: client.withConfig({ token }),
|
|
});
|