You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When throwing an error in a server action the Error is being serialized and sent to the client with the stack trace which poses a security issue leaking production code file locations and function names.
Expected behavior 🤔
At least on Production don't send server's stack traces to the client.
Steps to reproduce 🕹
Any error thrown in server action:
constmyAction=action(async()=>{'use server';thrownewError('my server error');});