diff --git a/frontend/src/scripts/fetch.ts b/frontend/src/scripts/fetch.ts index d3ba62a..7954ec7 100644 --- a/frontend/src/scripts/fetch.ts +++ b/frontend/src/scripts/fetch.ts @@ -80,7 +80,9 @@ export const db = { filters: { slug: slug }, - populate: ['categories'] + populate: ['categories'], + // Allows us to fetch unpublished posts for testing purpose, but they will not show up in /blog. + publicationState: 'preview' }; const queryString = qs.stringify(queryParams);