Implemented preview functionality with next js 13 app dir

This commit is contained in:
Henrik Larsson
2023-05-16 12:52:44 +02:00
parent 47b0df33d4
commit 0a2e289d85
10 changed files with 306 additions and 29 deletions

View File

@@ -0,0 +1,4 @@
'use client'
// Once rollup supports 'use client' module directives then 'next-sanity' will include them and this re-export will no longer be necessary
export { PreviewSuspense as default } from 'next-sanity/preview'