Skip to content

Commit

Permalink
Update app/api/predictions/[id]/route.js
Browse files Browse the repository at this point in the history
Co-authored-by: F <[email protected]>
  • Loading branch information
zeke and erbridge authored May 28, 2024
1 parent da485b1 commit d5cde8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/predictions/[id]/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand Down

0 comments on commit d5cde8f

Please sign in to comment.