Skip to content

Commit

Permalink
chore: disable vercel cache store (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyalcinkaya authored Apr 25, 2024
1 parent 5fb616a commit db47530
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export async function submitBookmark(formData) {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.AIRTABLE_PERSONAL_ACCESS_TOKEN}`
},
next: { cache: 'no-store' },
body: JSON.stringify({
fields: {
URL: formData.url,
Expand Down
1 change: 1 addition & 0 deletions src/app/bookmarks/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Toaster } from '@/components/ui/sonner'
import { getBookmarks } from '@/lib/raindrop'
import { sortByProperty } from '@/lib/utils'

export const fetchCache = 'force-no-store'
// Revalidate all routes every 2 days
export const revalidate = 60 * 60 * 24 * 2 // 2 days

Expand Down
3 changes: 2 additions & 1 deletion src/lib/raindrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const options = {
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.NEXT_PUBLIC_RAINDROP_ACCESS_TOKEN}`
}
},
next: { cache: 'no-store' }
}

const RAINDROP_API_URL = 'https://api.raindrop.io/rest/v1'
Expand Down

0 comments on commit db47530

Please sign in to comment.