diff --git a/app/db.ts b/app/db.ts index 74b7cd2..3e77c80 100644 --- a/app/db.ts +++ b/app/db.ts @@ -5,6 +5,7 @@ const backend = "http://localhost:8000"; export async function fetchLocations(): Promise { const res = await fetch("http://localhost:8000/api/locations", { + method: "GET", next: { revalidate: 1800, // every 30 minutes },