9 lines
300 B
TypeScript
9 lines
300 B
TypeScript
import { client } from "@/sanity/client";
|
|
import { sanityConnection } from "@repo/sanity-connection";
|
|
import { defineEnableDraftMode } from "next-sanity/draft-mode";
|
|
|
|
export const { GET } = defineEnableDraftMode({
|
|
client: client.withConfig({
|
|
token: sanityConnection.publicViewerToken,
|
|
}),
|
|
}); |