feat: added new route for transforming js to zod directly
since "javascript to json" and "json to zod" are already supported, this is a shortcut I would like to have
Vercel only supports node v20 & v22, therefore i bumped the engine version and solved some conflicts too in order for a successfull prwview branch
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| transform | Preview | Comment | Sep 6, 2025 0:49am |
The error message says that the prescribed node js version of 16 is incompatible with vercel build, which wants to have v18.
Since node v16 isnt supported by vercel anymore i bumped the node version to v22 (current long term support version).
I added the node option for legacy openssl support via te NODE_OPTIONS env variable to the relevant dev and build scripts, so they do work. Since node v18 some hash functions used by webpack internally are not supported anymore without this.
Security wise this is not a problem, since as far as i am aware these hash functions are only used by webpack to name the generated chunks.