Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
6 replies
fszabo

Does App Router have getStaticPaths? Does it even need that?

Hello everybody! 👋 I hope you are well!

So I'm looking into App Router. I just recently followed the Nextjs Guide and set up a basic blog, put using Pages. Now I'm trying to figure out how to migrate 😅 Pages had this apparently super cool feature to pre-generate my blog posts during the build with getStaticPaths and getStaticProps. I can't seem to find anything like that in App Router, although I'm really unsure if that's even still necessary. Does App Router have something like getStaticPaths? Does it even need that?

What's the best way of serving my .md files (blog posts) with remark with App Router? 🤔

Thanks in advance! Answers are much appreciated 🙂
Solution
maybe something like this
Was this page helpful?