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
Jump to solution
5 Replies
Solution
Neto
Neto•12mo ago
maybe something like this
Neto
Neto•12mo ago
Routing: Dynamic Routes
Dynamic Routes can be used to programmatically generate route segments from dynamic data.
Neto
Neto•12mo ago
for the md part,
Neto
Neto•12mo ago
Configuring: MDX
Learn how to configure MDX to write JSX in your markdown files.
fszabo
fszabo•12mo ago
Thank you so much! I'll take a look!