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 <noreply@anthropic.com>
This commit is contained in:
parent
fee96430ff
commit
586aa8de85
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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<Artwork[]> {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue