draft page render when slug(of draft page) hit in url

default discord avatar
6 months ago

hello i want to render those pages which status is published

when i hit baseurl with slug of any pages which status is draft or published it's render all the page

i don't want to show draft pages to end user.

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.