Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: max duration (#396)

authored by

Maximilian Kaske and committed by
GitHub
54ed0ce9 2c09c6f7

+11 -6
+2 -1
apps/web/src/app/api/checker/cron/10m/route.ts
··· 4 4 import { cron, isAuthorizedDomain } from "../_cron"; 5 5 6 6 // export const runtime = "edge"; 7 - export const preferredRegion = ["auto"]; 7 + // export const preferredRegion = ["auto"]; 8 8 export const dynamic = "force-dynamic"; 9 + export const maxDuration = 300; 9 10 10 11 export async function GET(req: NextRequest) { 11 12 if (isAuthorizedDomain(req.url)) {
+2 -1
apps/web/src/app/api/checker/cron/1h/route.ts
··· 4 4 import { cron, isAuthorizedDomain } from "../_cron"; 5 5 6 6 // export const runtime = "edge"; 7 - export const preferredRegion = ["auto"]; 7 + // export const preferredRegion = ["auto"]; 8 8 export const dynamic = "force-dynamic"; 9 + export const maxDuration = 300; 9 10 10 11 export async function GET(req: NextRequest) { 11 12 if (isAuthorizedDomain(req.url)) {
+3 -2
apps/web/src/app/api/checker/cron/1m/route.ts
··· 3 3 4 4 import { cron, isAuthorizedDomain } from "../_cron"; 5 5 6 - export const runtime = "edge"; 7 - export const preferredRegion = ["auto"]; 6 + // export const runtime = "edge"; 7 + // export const preferredRegion = ["auto"]; 8 8 export const dynamic = "force-dynamic"; 9 + export const maxDuration = 300; 9 10 10 11 export async function GET(req: NextRequest) { 11 12 if (isAuthorizedDomain(req.url)) {
+2 -1
apps/web/src/app/api/checker/cron/30m/route.ts
··· 4 4 import { cron, isAuthorizedDomain } from "../_cron"; 5 5 6 6 // export const runtime = "edge"; 7 - export const preferredRegion = ["auto"]; 7 + // export const preferredRegion = ["auto"]; 8 8 export const dynamic = "force-dynamic"; 9 + export const maxDuration = 300; 9 10 10 11 export async function GET(req: NextRequest) { 11 12 if (isAuthorizedDomain(req.url)) {
+2 -1
apps/web/src/app/api/checker/cron/5m/route.ts
··· 4 4 import { cron, isAuthorizedDomain } from "../_cron"; 5 5 6 6 // export const runtime = "edge"; 7 - export const preferredRegion = ["auto"]; 7 + // export const preferredRegion = ["auto"]; 8 8 export const dynamic = "force-dynamic"; 9 + export const maxDuration = 300; 9 10 10 11 export async function GET(req: NextRequest) { 11 12 if (isAuthorizedDomain(req.url)) {