Tighten cities fallback timeout

This commit is contained in:
2569718930@qq.com
2026-05-30 19:38:31 +08:00
parent 345691ad71
commit 3fcda3f3cd
+1 -1
View File
@@ -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) {