Zod v4-mini has tree-shaking capabilities which should dramatically reduce the size of Zod objects in server runtimes: https://zod.dev/packages/mini