DEV Community

Cover image for Next.js 14 - Laugh or Clap?

Next.js 14 - Laugh or Clap?

Ayyas 🚀 on November 02, 2023

So just when Vercel introduced Next.js 14 in Next.js Conf 2023, many have been criticizing it with multiple arguments. We will go through each of t...
Collapse
 
artxe2 profile image
Yeom suyun

The server action will have the same result as passing parameters to a restapi and receiving the query results. It will not affect security.
The code example is written as an inline function, and as mentioned in the text, it is not parameterized.
This makes it look like PHP and vulnerable to SQL injection.