elmasse / nextein

A static site generator with markdown + react for Next.js

Home Page:https://nextein.elmasse.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Review NextJS Static Exporters.

elmasse opened this issue · 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?