Skip to content

Commit b302934

Browse files
Miriadresearch
andcommitted
fix: remove export const revalidate from all 17 pages
Remove time-based ISR revalidation from all pages and sitemap. These caused constant ISR writes on every visitor request: - revalidate=60 on 7 listing pages (writes every minute per visitor) - revalidate=3600 on 5 detail pages - revalidate=86400 on 4 static pages - revalidate=3600 on sitemap.ts With defineLive + SanityLive handling real-time updates, time-based ISR revalidation provides zero benefit while consuming ISR writes. Files modified: - app/(main)/page.tsx - app/(main)/(post)/post/[slug]/page.tsx - app/(main)/(post)/blog/page.tsx - app/(main)/(post)/blog/page/[num]/page.tsx - app/(main)/(podcast)/podcast/[slug]/page.tsx - app/(main)/(podcast)/podcasts/page.tsx - app/(main)/(podcast)/podcasts/page/[num]/page.tsx - app/(main)/(author)/author/[slug]/page.tsx - app/(main)/(author)/authors/page/[num]/page.tsx - app/(main)/(guest)/guest/[slug]/page.tsx - app/(main)/(guest)/guests/page/[num]/page.tsx - app/(main)/(sponsor)/sponsor/[slug]/page.tsx - app/(main)/(sponsor)/sponsors/page/[num]/page.tsx - app/(main)/(top-level-pages)/[slug]/page.tsx - app/(main)/(top-level-pages)/pro/page.tsx - app/(main)/(top-level-pages)/sponsorships/page.tsx - app/sitemap.ts Co-authored-by: research <research@miriad.systems>
1 parent fec9ddc commit b302934

18 files changed

Lines changed: 7 additions & 23 deletions

File tree

app/(main)/(author)/author/[slug]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import UserRelated from "@/components/user-related";
1919

2020
type Params = Promise<{ slug: string }>;
2121

22-
export const revalidate = 3600;
2322

2423
export async function generateMetadata(
2524
{ params }: { params: Params },

app/(main)/(author)/authors/page/[num]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const LIMIT = 10;
99

1010
type Params = Promise<{ num: string }>;
1111

12-
export const revalidate = 60;
1312

1413
export async function generateStaticParams() {
1514
const count = await client.fetch<number>(

app/(main)/(guest)/guest/[slug]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import Avatar from "@/components/avatar";
2020

2121
type Params = Promise<{ slug: string }>;
2222

23-
export const revalidate = 3600;
2423

2524
export async function generateMetadata(
2625
{ params }: { params: Params },

app/(main)/(guest)/guests/page/[num]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const LIMIT = 10;
99

1010
type Params = Promise<{ num: string }>;
1111

12-
export const revalidate = 60;
1312

1413
export async function generateStaticParams() {
1514
const count = await client.fetch<number>(

app/(main)/(podcast)/podcast/[slug]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import Podcast from "../Podcast";
88

99
type Params = Promise<{ slug: string }>;
1010

11-
export const revalidate = 3600;
1211

1312
export async function generateMetadata(
1413
{ params }: { params: Params },

app/(main)/(podcast)/podcasts/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import MoreHeader from "@/components/more-header";
1616

1717
import PodmatchBadge from "@/components/podmatch-badge";
1818

19-
export const revalidate = 60;
2019
function HeroPodcast({
2120
title,
2221
slug,

app/(main)/(podcast)/podcasts/page/[num]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const LIMIT = 10;
99

1010
type Params = Promise<{ num: string }>;
1111

12-
export const revalidate = 60;
1312

1413
export async function generateStaticParams() {
1514
const count = await client.fetch<number>(

app/(main)/(post)/blog/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { Separator } from "@/components/ui/separator";
1515

1616
import MoreHeader from "@/components/more-header";
1717

18-
export const revalidate = 60;
1918
function HeroPost({
2019
title,
2120
slug,

app/(main)/(post)/blog/page/[num]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const LIMIT = 10;
99

1010
type Params = Promise<{ num: string }>;
1111

12-
export const revalidate = 60;
1312

1413
export async function generateStaticParams() {
1514
const count = await client.fetch<number>(

app/(main)/(post)/post/[slug]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import SponsorCard from "@/components/sponsor-card";
1919

2020
type Params = Promise<{ slug: string }>;
2121

22-
export const revalidate = 3600;
2322

2423
export async function generateMetadata(
2524
{ params }: { params: Params },

0 commit comments

Comments
 (0)