Replies: 1 comment 6 replies
-
You can enable POST support for draft mode in Next.js by using an API route to store preview data and reading it in your page.
This lets you send larger preview payloads via POST, improving speed and reducing CMS fetches. 🚀 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
Many CMSs like Payload CMS or Tina CMS have robust client driven "live preview" functionality, and it'd be nice to support that in a more streamlined way in RSC components.
Proposal
Expand the page handler to support POST in draftMode (it already supports GET) so that we can pass larger data paylaods to the server for rendering.
Beta Was this translation helpful? Give feedback.
All reactions