If I use this pkg with nextjs and next public envs will it include zod in my client bundle? #330
-
|
as per title. |
Beta Was this translation helpful? Give feedback.
Answered by
juliusmarminge
Jun 9, 2025
Replies: 2 comments 4 replies
-
|
Yes you can use valibot for a more lightweight alternative if bundle size is important |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Oudwins
-
|
@juliusmarminge Do you think there is a world/merit to have a compiled option where this code runs exclusively during build and outputs a typed structure without requiring import of the validation library into the client bundle or parsing the variables at run time |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Yes you can use valibot for a more lightweight alternative if bundle size is important