transform icon indicating copy to clipboard operation
transform copied to clipboard

feat: added new route for transforming js to zod directly

Open LeonMueller-OneAndOnly opened this issue 3 months ago • 3 comments

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

LeonMueller-OneAndOnly avatar Sep 06 '25 12:09 LeonMueller-OneAndOnly

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
transform Ready Ready Preview Comment Sep 6, 2025 0:49am

vercel[bot] avatar Sep 06 '25 12:09 vercel[bot]

The error message says that the prescribed node js version of 16 is incompatible with vercel build, which wants to have v18.

LeonMueller-OneAndOnly avatar Sep 06 '25 12:09 LeonMueller-OneAndOnly

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.

LeonMueller-OneAndOnly avatar Sep 06 '25 12:09 LeonMueller-OneAndOnly