1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-14 19:20:50 -05:00

load theme restoration script earlier in the <head>

This commit is contained in:
2025-03-31 09:38:41 -04:00
parent ec7c9fae54
commit 4203516cf3
3 changed files with 22 additions and 16 deletions

View File

@@ -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)}>