From d5cde8fe5d153ba46459793923b15e82b3a1b5a3 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Tue, 28 May 2024 15:26:40 -0700 Subject: [PATCH] Update app/api/predictions/[id]/route.js Co-authored-by: F --- app/api/predictions/[id]/route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/predictions/[id]/route.js b/app/api/predictions/[id]/route.js index 15684fb6..918af8cc 100644 --- a/app/api/predictions/[id]/route.js +++ b/app/api/predictions/[id]/route.js @@ -8,7 +8,7 @@ const replicate = new Replicate({ // Prevent Next.js / Vercel from caching responses // See https://github.com/replicate/replicate-javascript/issues/136#issuecomment-1728053102 replicate.fetch = (url, options) => { - return fetch(url, { ...options, cache: "no-store" }); + return fetch(url, { cache: "no-store", ...options }); }; export async function GET(request, {params}) {