Using build artifacts with 11ty serverless #1878
-
I'm currently building a tool that renders a custom page for users on each request, but interacts with an external API which at least partly doesn't change its data (I expect changes to be happening around 3-5 times a year). To save on netlify functions time and improve performance I want to extract the ~100 requests to the buildstep during deployment of my website, so during execution later I only need to request the single changing API call. I do not have any control over the called API. Is there a way to generate 11ty data during a deployment, so it can be used during serverless calls? My guess right now would be to just render out a json file from the ~100 requests to my functions folder, but I don't know how to use it from there, and if that's the best idea. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm blind, there's a whole section about this in the docs I missed... |
Beta Was this translation helpful? Give feedback.
I'm blind, there's a whole section about this in the docs I missed...
https://www.11ty.dev/docs/plugins/serverless/#re-use-build-time-cache-from-the-cache-assets-plugin