.default('') on Zod doing nothing

I have a validator for the profilePictureUrl that sets the default to an empty string.. or so I thought. I'm getting errors like:
3 Replies
deforestor
deforestorOP3y ago
This is the validator:
deforestor
deforestorOP3y ago
and if I remove the .nullish():
deforestor
deforestorOP3y ago
Yikes.. turns out the zod was setting the default, but the can't be an empty string, duh. Thank you, rubberduckies
Want results from more Discord servers?
Add your server