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}) {