mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-14 23:00:49 -05:00
load theme restoration script earlier in the <head>
This commit is contained in:
@@ -14,7 +14,12 @@ export type TweetProps = Omit<ComponentPropsWithoutRef<typeof EmbeddedTweet>, "t
|
||||
|
||||
const Tweet = async ({ id, className, ...rest }: TweetProps) => {
|
||||
try {
|
||||
const tweet = await getTweet(id);
|
||||
const tweet = await getTweet(id, {
|
||||
next: {
|
||||
// cache for 12 hours
|
||||
revalidate: 43200,
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<div className={clsx(styles.tweet, className)}>
|
||||
|
||||
Reference in New Issue
Block a user