diff --git a/site/gatsby-site/netlify/functions/parseNews.ts b/site/gatsby-site/netlify/functions/parseNews.ts index a08acb3334..f9e08d2aed 100644 --- a/site/gatsby-site/netlify/functions/parseNews.ts +++ b/site/gatsby-site/netlify/functions/parseNews.ts @@ -39,7 +39,7 @@ exports.handler = async function (event) { // Runs first with { cookies: false }, // then on error recurses with { cookies: true } as a fallback. const getArticle = async (url, config) => { - const TIMEOUT_DURATION = 10000; // Timeout after 10 seconds + const TIMEOUT_DURATION = 5000; // Timeout after 10 seconds const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error('Parser.parse timed out')), TIMEOUT_DURATION)