When we prepare a new record - in our case, a blog article - in DatoCMS we would like to be able to see how our frontend, which fetches the data via the DatoCMS API, will render the content before publish it live to our website. So we would like see draft articles when running our site on a development machine or in a pre-production environment.
What is the best practice for achieving this? I read the article on the draft/published system, but it states that records in draft state will not be returned from the API.
Should I create my own custom field - say “Production” - and filter based on that in the production site but not in the pre-production ones?
Thanks in advance.