From 45f0911d7b66b8207b585a6c4cd23107ef1b4a39 Mon Sep 17 00:00:00 2001 From: Ian Holloway Date: Fri, 31 May 2024 13:08:05 -0700 Subject: [PATCH] change to get req --- app/db.ts | 1 + 1 file changed, 1 insertion(+) 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 },