17 comments
I understand the concerns raised in the article but i am not agree with some point
=> While it’s true that Next.js has introduced new features like Server Actions, these are aimed at enhancing the capabilities of the framework. The learning curve might be steeper, but it’s a trade-off for more powerful features. The documentation is comprehensive and is continually updated to help developers navigate these complexities.
=> Transitioning from page router to app router was a significant change. However, it’s important to note that changes in major versions of any software can lead to breaking changes. It’s part of the software evolution process. Learning about Server Actions is indeed required, but it’s a one-time effort that can unlock more powerful functionalities.
=> Next.js does have some limitations, like the 1Mb request body limit. However, these limits are often set for good reasons, such as preventing Denial of Service (DoS) attacks. For use-cases that require larger payloads, alternatives like using a separate API server or storing the data in a cloud storage and sending the URL in the request could be considered.
=>Comparing Next.js with a simple Express server might not be fair. They serve different purposes. Next.js provides a full-fledged framework for building server-rendered React applications, while Express is a minimalistic web application framework for Node.js
at last i want to said that remember, every technology has its pros and cons. The key is to choose the right tool for the job based on the specific requirements of the project. ☃️
This is exactly what I went through few days ago. I was trying to setup simple prisma+mongodb logger in NextJS but could not even start mongo connection in server action. Similar setup in Page Router was so easy.