Do nextjs server actions replace the need for edge functions or a traditional backend?

81 Views Asked by At

At first glance it seems that NextJS server actions are similarly implemented to edge functions in serverless computing. They can do many things including run code on the server, it's hard for me to understand their true purpose and how they differentiate themselves from other server side implementations.

I'm curious as to their limitations and how they are different from traditional server side code, for example one of the use cases from vercel is to fetch data for the user.

Thanks.

1

There are 1 best solutions below

0
On

To answer your question, you have to learn the basics of Next.js. I assume you already know React. Use the Framework and ask again for specific information or coding hints.

Good starting points are the official docs and this excellent tutorial (!).