Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

change tweet revalidate to 1 week instead of 1 day

Steven Tey0107bf91d3d7
diff --git a/lib/twitter/get-tweet.ts b/lib/twitter/get-tweet.ts
index 01c3e2fb26..6612dad18c 100644
--- a/lib/twitter/get-tweet.ts
+++ b/lib/twitter/get-tweet.ts
@@ -20,7 +20,7 @@ export const getTweet = async (id: string) => {
Authorization: `Bearer ${process.env.TWITTER_AUTH_TOKEN}`,
},
next: {
- revalidate: 86400, // revalidate every 1 day
+ revalidate: 604800, // revalidate every 1 week
},
},
);