diff --git a/pages/api/baseten.js b/pages/api/baseten.js index a8573e9..06112ee 100644 --- a/pages/api/baseten.js +++ b/pages/api/baseten.js @@ -9,6 +9,7 @@ export default async function handler(req, res) { method: "POST", headers: headers, body: req.body, + signal: AbortSignal.timeout(15000), }); const data = await response.json(); diff --git a/pages/api/server.js b/pages/api/server.js index 4ac8532..349da8a 100644 --- a/pages/api/server.js +++ b/pages/api/server.js @@ -8,6 +8,7 @@ export default async function handler(req, res) { method: "POST", headers: headers, body: req.body, + signal: AbortSignal.timeout(15000), }); const data = await response.json();