Skip to content

UseTransition handling server action throw error , emit error in vercel production build #61657

@ymc182

Description

@ymc182

Link to the code that reproduces this issue

sandbox link

To Reproduce

doing a useTransition calling server action which throws error from server if something happens, development build can catch the error but in production build:

an error occurred in the server components render. the specific message is omitted in production builds to avoid leaking sensitive details

Current vs. Expected behavior

same as developement where the error message can be catched from client side

Provide environment information

vercel

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.lockedstaleThe issue has not seen recent activity.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions