From 586aa8de85549b12e2b02f63e36d4e48533b568a Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 4 Feb 2026 22:37:55 +0000 Subject: [PATCH] Force dynamic rendering for Directus pages - Homepage, events, and store pages now use force-dynamic - This ensures fresh data is fetched at runtime - Fixes build-time Directus fetch failures Co-Authored-By: Claude Opus 4.5 --- frontend/src/app/events/page.tsx | 4 +++- frontend/src/app/page.tsx | 4 +++- frontend/src/app/store/page.tsx | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/events/page.tsx b/frontend/src/app/events/page.tsx index 487437d..c73726a 100644 --- a/frontend/src/app/events/page.tsx +++ b/frontend/src/app/events/page.tsx @@ -8,7 +8,9 @@ export const metadata: Metadata = { description: 'Upcoming exhibitions, workshops, and events with Katheryn Trenshaw', }; -export const revalidate = 60; +// Force dynamic rendering to ensure fresh data from Directus +export const dynamic = 'force-dynamic'; +export const revalidate = 0; async function getEventsList(): Promise<{ upcoming: Event[]; past: Event[] }> { try { diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 410c847..9b636d2 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -4,7 +4,9 @@ import { getArtworks, getEvents, getAssetUrl, Artwork, Event } from '@/lib/direc import { ArtworkCard } from '@/components/artwork-card'; import { WisdomWordsCarousel } from '@/components/wisdom-words-carousel'; -export const revalidate = 60; +// Force dynamic rendering to ensure fresh data from Directus +export const dynamic = 'force-dynamic'; +export const revalidate = 0; async function getFeaturedArtworks(): Promise { try { diff --git a/frontend/src/app/store/page.tsx b/frontend/src/app/store/page.tsx index fc36de7..3b34d10 100644 --- a/frontend/src/app/store/page.tsx +++ b/frontend/src/app/store/page.tsx @@ -7,7 +7,9 @@ export const metadata: Metadata = { description: 'Shop original artworks, prints, and unique pieces by Katheryn Trenshaw', }; -export const revalidate = 60; +// Force dynamic rendering to ensure fresh data from Directus +export const dynamic = 'force-dynamic'; +export const revalidate = 0; async function getShopItems(): Promise<{ available: Artwork[]; sold: Artwork[] }> { try {