Skip to content
Discussion options

You must be logged in to vote

I'm not sure that architecture is the best approach. Could you have a specific API for the newspage instead of looping multiple pages into the same API endpoint?

For example, pages/en/newspage/[page].js would render all of the news pages and would be able to share that same newsapge layout. Then, it could fetch information from your CMS in getStaticProps / getStaticPaths to build out all of the individual news pages.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Joelgullander
Comment options

@leerob
Comment options

@Joelgullander
Comment options

@Joelgullander
Comment options

@leerob
Comment options

Answer selected by Joelgullander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants