Skip to content

Commit c6a5b3f

Browse files
committed
Set timeout for page events to 5 seconds
1 parent 4a54413 commit c6a5b3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/plugins/engine/routes/questions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function handleHttpEvent(
6161

6262
// @ts-expect-error - function signature will be refactored in the next iteration of the formatter
6363
const payload = format(context, items, model, undefined, undefined)
64-
const opts = { payload }
64+
const opts: httpService.RequestOptions = { payload, timeout: 5000 }
6565

6666
if (preparePageEventRequestOptions) {
6767
preparePageEventRequestOptions(opts, event, page, context)

0 commit comments

Comments
 (0)