In building the 11ty Bundle website, I use eleventy-fetch to fetch the html of posts. If the site hosting the post is unreachable, the eleventy-build hangs at the point of the fetch. Feel like a bug.
I worked around it by making use of the fetchOption to add a 2 second custom timeout, like so:
fetchOptions: {
signal: AbortSignal.timeout(2000)
},
I'd have rather had a default timeout, but I'm not sure what the default timeout should be.
In building the 11ty Bundle website, I use eleventy-fetch to fetch the html of posts. If the site hosting the post is unreachable, the eleventy-build hangs at the point of the fetch. Feel like a bug.
I worked around it by making use of the fetchOption to add a 2 second custom timeout, like so:
I'd have rather had a default timeout, but I'm not sure what the default timeout should be.