Next.js Discord

Discord Forum

do i use server components , actions over express js ?

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
i am building a chat app that will use socket io , mySQL database , next js , jwt for authentication as well , i was planning to use express js for the backend for my websocket server logic i was following the next js 14 tutorial they used server actions to submit form data for the new users and the rest of the App to their hosted postgre sql database is there any disadvantages for using server action and components for handling database logic over express js endpoints before i read the docs i was gonna handle both jwt , database logic with express js in the backend i saw this new react feature and i am a bit confused on which way to go and is it gonna work if i take the server actions components path , i also want to have protected pages from non admin users only admin users should access these pages in my App ?

0 Replies