vercel / nft

Node.js dependency tracing utility
https://npmjs.com/@vercel/nft
MIT License
1.31k stars 136 forks source link

Allow setting `fileIOConcurrency` using environment variables #420

Closed fourdim closed 4 months ago

fourdim commented 4 months ago

It's not possible to pass fileIOConcurrency using parameters when building projects on vercel as far as I know. Is it possible to have an environment variable like NFT_FILE_IO_CONCURRENCY to control this behaviour?

styfle commented 4 months ago

The original PR didn't have much detail but I assume the number was chosen to suit Vercel's default build container.

I don't think we would want users to change it and cause OOM errors.

Is there a problem you're trying to solve?

fourdim commented 4 months ago

Yes, thanks.