Files

7 lines
184 B
TypeScript

// If it's sync default export, convert to async and await the function call
import { draftMode } from 'next/headers'
export default function MyComponent() {
draftMode().enable()
}