How to Statically Render Blogposts
Unanswered
Harlequin posted this in #help-forum
HarlequinOP
const blogPosts = await getBlogPosts();
console.log(blogPosts);but they are getting dynamically rendered, because that is correct. But how can i generate a bunch of static pages?
10 Replies
HarlequinOP
With the app router?
HarlequinOP
but how does it know what blogposts i have? lets say i have posts 1-25. how can i tell it to generate the static files for that? The only thing I care of is SEO
HarlequinOP
ah got it, and what if i create a new post? how can i let me prod build know that
my*
hmm, I'm not sure, since it's static, you just need to build again ig? otherwise it's just dynamic pages
HarlequinOP
ah so if i cant find it, it just makes it dynamic