Skip to content

Commit

Permalink
Support generating Contentful drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Apr 20, 2022
1 parent e5a12a7 commit 577ec45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/get-contentful-pages.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ module.exports = memoize (pageTypes) ->
# GQL to get all the entries of a page
makeQuery = ({ contentType, routeField = 'slug' }) ->
"""
query {
#{contentType}Collection(limit: 1000) {
query getRoutes($preview:Boolean = false) {
#{contentType}Collection(limit: 1000, preview: $preview) {
items {
... on #{upperFirst(contentType)} {
#{routeField}
Expand Down

0 comments on commit 577ec45

Please sign in to comment.