ndr4
1
I am using Astro adapter to have some cusotm on-demand builder for my website.
I am manage to make it work, however I am wondering how can I set the cache of the builders.
Is there a way on Netlify to set the cache time of the builders and when the should re-run and re-build?
I’ve look in all the pages of the website but I couldn’t even find a single section that is related to the builders.
Am I missing something?
This is explained in the docs: On-demand Builders | Netlify Docs
How to manage it with Astro is something Astro can answer.
ndr4
3
Ok, thank you.
I tried to add:
Astro.locals.runtime.setBuildersTtl(60);
however it resolve in a 500 error and the page doesn’t load.
It says the error right on the page:
Cannot read properties of undefined (reading 'setBuildersTtl')
which according to your code snippet is:
So either that’s incorrect, or a bug in Astro.
ndr4
7
This is were it is documented:
Sure, but that’s still an Astro issue.