Next.js Preview: Preview Draft Documents

Hi there,

is it possible to create a preview with newly created documents that have not been published yet?

Currently our workaround is to publish the document and set a flag noindex that will not index the page for google etc. - but it would be nice to also preview draft-pages as well.

How would we be able to achieve that?

Hi Andi,

This is a standard function of our preview feature. If it's not working for unpublished documents then it sounds like you don't have the preview script included in your '404' page and therefore the toolbar isn't called to hit the linkresolver and find the correct document. You can read about this and other common tripping points here:

Thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.