Hi,
I have started using Netlify for more complex projects (beyond static websites) using Next.js and I was wondering if there was a way to install dependencies such as texlive in the runtime environment of the Next.js API functions?
Thanks.
Hi,
I have started using Netlify for more complex projects (beyond static websites) using Next.js and I was wondering if there was a way to install dependencies such as texlive in the runtime environment of the Next.js API functions?
Thanks.
That won’t be possible. API routes run on AWS Lambda, so you can only get the packages that might be preinstalled in that, or use any Node-packages.
You can get it to work if there’s a simple shell script that you can include along with your function, but won’t be able to install any packages on demand.
Hey there, @automaticFix
Can you tell us more about your use case for layers and how you envision implementing it? I will share this with our dev team once I have more information. Thanks!
Hi @hillary
Some of my use cases are:
Another option is perhaps supporting Creating Lambda container images - AWS Lambda.
Out of curiosity, how do your other customers currently implement features like these? By using custom solutions?
Thanks!
No immediate plans to support Layers, I’m afraid. I haven’t seen a lot of people (if any) try what you are trying, so not sure what folks might be using.