From 3fcda3f3cd15ba5e467a6c3cb594ca70c64d08ac Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Sat, 30 May 2026 19:38:31 +0800 Subject: [PATCH] Tighten cities fallback timeout --- frontend/app/api/cities/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/api/cities/route.ts b/frontend/app/api/cities/route.ts index 5efd675b..f6e709d3 100644 --- a/frontend/app/api/cities/route.ts +++ b/frontend/app/api/cities/route.ts @@ -8,7 +8,7 @@ const CITIES_CACHE_CONTROL = "public, max-age=0, s-maxage=60, stale-while-revali const STATIC_CITIES_CACHE_CONTROL = "public, max-age=0, s-maxage=300, stale-while-revalidate=3600"; const CITIES_BACKEND_TIMEOUT_MS = Number( - process.env.POLYWEATHER_CITIES_BACKEND_TIMEOUT_MS || 2500, + process.env.POLYWEATHER_CITIES_BACKEND_TIMEOUT_MS || 1000, ); function staticCitiesFallback(req: NextRequest, reason: string) {