rsnext/examples/cms-contentful/pages
Ante Sepic e404b9962b
[Examples] Prevent getStaticProps from returning "undefined" (#19012)
If the example is cloned and ran with no further setup (no environment variables set up), it will error out because `extractPostEntries` will return `undefined` which can not be serialized by `getStaticProps `.

This PR basically ensures that we return an empty array instead of the `undefined` for a collection of posts, and a `null` instead of the `undefined` for a single post.
2020-11-10 23:33:51 +00:00
..
api Add new import flow to CMS examples (#14053) 2020-06-11 23:44:23 +00:00
posts Fix up CMS examples (#12840) 2020-05-13 14:13:14 -04:00
_app.js [Examples] add Contentful example (#12323) 2020-04-29 13:19:49 -05:00
_document.js [Examples] add Contentful example (#12323) 2020-04-29 13:19:49 -05:00
index.js [Examples] Prevent getStaticProps from returning "undefined" (#19012) 2020-11-10 23:33:51 +00:00