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:
parent
5bebd51ac4
commit
c240ec4ce6
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user