Is it correct to use “if” statement in getStaticProps Next.JS

后端 未结 0 1641
时光取名叫无心
时光取名叫无心 2021-02-01 13:33

I\'m making static Next.JS e-commerce app.

For returning products in categories I have different logic, so I\'m using following code in getStaticProps:

            


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