Skip to content

Commit

Permalink
Merge pull request datocms#19 from thomasverleye/patch-1
Browse files Browse the repository at this point in the history
Add `preview` to static props in `Post`
  • Loading branch information
souljuse authored Jan 25, 2022
2 parents 42bf743 + 7cddc6f commit 9fead23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export async function getStaticProps({ params, preview = false }) {
enabled: false,
initialData: await request(graphqlRequest),
},
preview,
},
};
}
Expand Down

0 comments on commit 9fead23

Please sign in to comment.