clarification about some concepts in Next js #70898
Replies: 1 comment
-
Hi @Moemen12 , Here are concise responses to your questions regarding Next.js:
|
Beta Was this translation helpful? Give feedback.
-
Hi @Moemen12 , Here are concise responses to your questions regarding Next.js:
|
Beta Was this translation helpful? Give feedback.
-
Actually I have many questions, The first one, Has a solution been found for setting code status and json response other than 200 and 500 like 400... İn action server functions or not yet ??
Do u recommend working with route handler and server action together? İ know that in server actions there isn't endpoints + u can't deal with external data like (webhook..)
But let's I wanna create some server functions to encapsulate and use it in multiple endpoint for example so is it a good idea ?
if I'm in server action function and I wanna redirect user after signup for example how ?
I tried to use redirect function outside try catch block at the end of the function but didn't work and tried to check if there is redirect error (built-in Nextjs function and throw an error but didn't work too)..
Beta Was this translation helpful? Give feedback.
All reactions