elmasse/nextein

Review NextJS Static Exporters.

elmasse opened this issue · 0 comments

NextJS Static Exporters could be used in Nextein. The first intent might be to create static exporters that should support filtering posts, and add post and posts properties.

  • createStaticPaths,
  • createStaticPathsFiltererBy(filter)
  • createStaticProps,
  • createStaticPropsFiltererBy(filter)

Questions

  • Should detect the presence of params in staticProps to determine if rendering a list or a single post?
  • How do we expose the post and posts at the same time?
  • Should these methods return objects as in next static exporters or should we provide just methods to read posts?