fix: disable Next.js fetch cache for OSRM requests

next:{revalidate:86400} was caching the OSRM URL in Next.js's on-disk
data cache, so old localhost:5002 requests replayed even after the env
var was updated to osrm:5000. Drive-time lookups need live responses.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chris 2026-05-05 16:19:50 -04:00
parent 5bebd51ac4
commit c240ec4ce6

View File

@ -64,7 +64,7 @@ export async function drivingInfo(
const timer = setTimeout(() => controller.abort(), timeoutMs)
const res = await fetch(url, {
headers: { 'User-Agent': 'BeachPartyBalloonsShop/1.0' },
next: { revalidate: 86400 },
cache: 'no-store',
signal: controller.signal,
})
clearTimeout(timer)