- Create one entry with
title
andsingle_line
field. - create
next.config.js
using thenext.config.sample.js
- Run the project within Contentstack
The idea is to use the SSR documentation for the live preview. We moved the ContentstackLivePreview.init()
at the utils.js
where we have initialized the Contentstack
. Then, we have used the Stack.livePreviewQuery
and passed the query param to it. We got the query param from the prop of getServerSideProps()
.