How to handle properly error which is thrown in api route Next JS 14?
I want to display nice UI message when some user try to register with already registered email.
This is my route.tsx (/api/auth/register/route.tsx)
I want to display nice UI message when some user try to register with already registered email.
This is my route.tsx (/api/auth/register/route.tsx)