Hi,
we are running Next.js/react and have some middleware to query preview documents before displaying the preview page.
Currently this works fine if the the document has previously been published, but it can't seem to find new unpublished documents (previewing the release of an import).
We are getting the documentId from the preview queryString and using it like Prismic.Predicates.at('document.id', documentId).
Does the query need to be altered for unreleased preview documents?