Hey! I think I must be doing something stupid, but every time I turn on versioning all my pages disappear from my collection. I suspect that its only showing published pages or something? How can I display my unpublished pages?
As soon as I disable versioning for the collection all the pages re-appear in the list. Also, possibly as a side effect of whatever I have done, server-side live preview only updates when I publish, not when it auto-saves (I know this because somehow at one point I had one of my pages displaying in the list but now its gone again 🤷♂️ )
I'm activating versioning using this in my collection:
access: {
read: ({ req }) => {
// If there is a user logged in,
// let them retrieve all documents
if (req.user) return true;
// If there is no user,
// restrict the documents that are returned
// to only those where `_status` is equal to `published`
return {
_status: {
equals: "published"
}
};
}
},
versions: {
drafts: {
autosave: {
interval: 375
}
}
},