adaltas/ece-webtech-2023-fall

Rendering Lab issue

MaxenceLecoq921 opened this issue · 2 comments

Hello Sir, @sergkudinov

I've observed that in the "Rendering" assignment, you've asked us to implement a getStaticProps function. I've also noted that this function is intended for use with articles.js located in the "pages" folder. However, this suggests that we're using the Next.js "PAGES" routing. Yet, we're currently utilizing the "APP" routing. Therefore, employing getStaticProps doesn't seem suitable for our setup.

Should we restructure the project to use the "PAGES" routing, or is there an alternative to getStaticProps that's suitable for "APP" routing?

Best regards.

It is up to you, you can stay with App router but implement this differently.

Check out on this page:

Data fetching functions like getServerSideProps and getStaticProps have been replaced with a new API inside app. getStaticPaths has been replaced with generateStaticParams.

Thank you for your help.