.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
deforestor2y ago
This is the validator:
deforestor
deforestor2y ago
and if I remove the .nullish():
deforestor
deforestor2y 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