Openstatus www.openstatus.dev

🔥 follow redirect (#1340)

* 🔥 follow redirect

* 🔥

* 🤦

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
9754365c f47fabcf

+6
+1
apps/web/src/app/api/checker/cron/_cron.ts
··· 187 187 } 188 188 : undefined, 189 189 retry: row.retry || 3, 190 + followRedirects: true, 190 191 }; 191 192 } 192 193 if (row.jobType === "tcp") {
+3
apps/workflows/src/cron/checker.ts
··· 171 171 degradedAfter: monitor.degradedAfter, 172 172 timeout: monitor.timeout, 173 173 trigger: "cron", 174 + retry: monitor.retry || 3, 175 + followRedirects: true, 174 176 } satisfies z.infer<typeof httpPayloadSchema>; 175 177 url = `https://openstatus-checker.fly.dev/checker/http?monitor_id=${monitor.id}`; 176 178 } ··· 185 187 degradedAfter: monitor.degradedAfter, 186 188 timeout: monitor.timeout, 187 189 trigger: "cron", 190 + retry: monitor.retry || 3, 188 191 } satisfies z.infer<typeof tpcPayloadSchema>; 189 192 url = `https://openstatus-checker.fly.dev/checker/tcp?monitor_id=${monitor.id}`; 190 193 }
+1
packages/api/src/router/checker.ts
··· 289 289 } 290 290 : undefined, 291 291 retry: input.retry || 3, 292 + followRedirects: true, 292 293 }; 293 294 } 294 295 if (input.jobType === "tcp") {
+1
packages/utils/index.ts
··· 453 453 }) 454 454 .optional(), 455 455 retry: z.number().default(3), 456 + followRedirects: z.boolean().default(true), 456 457 }); 457 458 458 459 export type HttpPayload = z.infer<typeof httpPayloadSchema>;