Skip to content

Commit 76f4f1b

Browse files
chore: updating caching
1 parent f741c5b commit 76f4f1b

File tree

5 files changed

+2
-12
lines changed

5 files changed

+2
-12
lines changed

apps/sim/app/(landing)/blog/[slug]/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ export async function generateMetadata({
3333
return buildPostMetadata(post)
3434
}
3535

36-
export const revalidate = 86400
37-
3836
export default async function Page({ params }: { params: Promise<{ slug: string }> }) {
3937
const { slug } = await params
4038
const post = await getPostBySlug(slug)

apps/sim/app/(landing)/blog/authors/[id]/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { getAllPostMeta } from '@/lib/blog/registry'
55
import { PostGrid } from '@/app/(landing)/blog/post-grid'
66
import { WithSidebar } from '@/app/(landing)/blog/with-sidebar'
77

8-
export const revalidate = 3600
9-
108
function findAuthorById(posts: Awaited<ReturnType<typeof getAllPostMeta>>, id: string) {
119
for (const p of posts) {
1210
if (p.author.id === id) return p.author

apps/sim/app/(landing)/blog/og/route.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import type { NextRequest } from 'next/server'
55
import { getPostBySlug } from '@/lib/blog/registry'
66
import { getPrimaryCategory } from '@/app/(landing)/studio/tag-colors'
77

8-
export const revalidate = 3600
9-
108
function getTitleFontSize(title: string): number {
119
if (title.length > 80) return 36
1210
if (title.length > 60) return 40

apps/sim/app/(landing)/blog/post-grid.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ export function FeaturedGrid({ posts }: PostGridProps) {
218218
className='grid grid-cols-1 gap-6 md:grid-cols-2'
219219
variants={gridVariants}
220220
initial={shouldReduceMotion ? 'visible' : 'hidden'}
221-
whileInView='visible'
222-
viewport={{ once: true, margin: '-60px' }}
221+
animate='visible'
223222
>
224223
<FeaturedLeadCard post={lead} />
225224
{rest.map((p) => (
@@ -237,8 +236,7 @@ export function PostGrid({ posts }: PostGridProps) {
237236
className='grid auto-rows-[1fr] grid-cols-1 gap-6 md:grid-cols-2'
238237
variants={gridVariants}
239238
initial={shouldReduceMotion ? 'visible' : 'hidden'}
240-
whileInView='visible'
241-
viewport={{ once: true, margin: '-60px' }}
239+
animate='visible'
242240
>
243241
{posts.map((p, index) => (
244242
<PostCard key={p.slug} post={p} priority={index < 4} />

apps/sim/app/(landing)/blog/tags/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export const metadata: Metadata = {
77
title: 'Tags',
88
}
99

10-
export const revalidate = 3600
11-
1210
export default async function TagsIndex() {
1311
const allPosts = await getAllPostMeta()
1412

0 commit comments

Comments
 (0)