How to manage published/unpublished pages in Plasmic

hi plasmic team,
wondering if there is a way to manage published/unpublished pages directly on Plasmic? My current workflow involves allowing specific paths/pages on a filter in the getStaticPaths method of the catchall route, but this is not something i can automate once my editors jump in and start creating new pages. A boolean metafield would be great, but we would have to be able to set the value inside plasmic

Hi @soft_crane, you can set arbitrary metadata fields on pages, and then consult them in the headless API to determine which pages you want to include in the app: https://docs.plasmic.app/learn/react-api/#plasmiccomponentloaderfetchcomponentdata

Also, there is a pretty hidden feature of Plasmic currently, where simply any components/pages named with a leading underscore are hidden from publishes