Skip to content

Issue with zod/mini and t3-env and t3-oss/env-nextjs #5332

@varghesethomase

Description

@varghesethomase

Zod mini failed in github action workflow(not locally in an osx or either when testing using act) when used together with t3-oss/t3-env and t3-oss/env-nextjs.
The issue encountered is as shown in the image below.

Image

The expectation was that t3env and t3-oss/env-nextjs supports everything adhering to standard schema. For confirming if its an issue with zod/mini, I tried migrating the file to valibot. And it works well and as expected which confirms that its either an issue with zod/mini or with the t3-oss/env-nextjs or t3-env.

Its hard to reliably reproduce this issue as it occurs only when building the application in vercel, or when its run as a part of a workflow in github actions pipeline which makes me wonder if its related to the operating system but do not have any proof to confirm it. I would appreciate any help here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions