How to prevent drafts from being served (single content)

Found a way - the publishedAt field in the response is null when it’s a draft.

1 Like