Is performance impact when `getStaticPaths() fetching all posts, which posts total are a million posts?

后端 未结 0 1307
逝去的感伤
逝去的感伤 2020-11-27 07:09
export async function getStaticPaths() { 
 // Call an external API endpoint to get posts
 const res = await fetch(\'https://.../posts\')
 const posts = await res.jso         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题