Skip to content

Commit

Permalink
small fix for chat caching
Browse files Browse the repository at this point in the history
  • Loading branch information
parsa-asgari committed Mar 19, 2024
1 parent a4bf6dd commit 49c5c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export async function getChatLocal(username: string) {
'Content-Type': 'application/json'
},
body: JSON.stringify(payload),
next: { revalidate: 5 }
next: { cache: 'no-store' }
})
if (!res.ok) {
// This will activate the closest `error.js` Error Boundary
Expand Down

0 comments on commit 49c5c76

Please sign in to comment.