How to deploy js server that depends on system-installed non-js binaries

Hi,

I’m new to Netlify so I’m sorry if this post is not correctly formatted or categorized.

I currently have, on-premises, a React SPA that references an Express.js API. I would like to move the API to Netlify, but the API uses wkhtmltopdf, which requires that its precompiled binary be installed on the system prior to installing the npm dependency.

I’d like to know if Netlify can handle that situation and if so, how to go about doing it.

AFAICT, Netlify doesn’t give me a VM I can log into or a way to declare a system configuration for that VM or however Netlify magically runs code.

Thanks!

You can download the Linux binary and include it as menioned: How to Include Files in Netlify Serverless Functions