Demo Lab

Rendering strategy map

EventMap использует разные стратегии рендеринга для content pages, live search, demo pages и client state.

Route/[locale]
isr
Роль
Localized landing page with featured events
Источник данных
controlled content source
Стратегия
isr
Cache policy
controlled content, future revalidate
Причина

The page is useful for SEO and should not depend on live Ticketmaster data during build.

Route/[locale]/events/[id]
static
Роль
Event detail page
Источник данных
controlled content source
Стратегия
static
Cache policy
generateStaticParams + dynamicParams=false
Причина

Known content pages can be generated ahead of time from controlled ids.

Route/[locale]/search
dynamic
Роль
Live search page
Источник данных
live Ticketmaster source
Стратегия
dynamic
Cache policy
fetch revalidate + tags
Причина

Search depends on user filters and live external data, so it should not be frozen as a small static list.

Route/[locale]/demo/*
no-store
Роль
Learning labs
Источник данных
demo data
Стратегия
no-store
Cache policy
demo-specific, preview-friendly
Причина

Demo pages explain mechanisms and can opt out of cache when they imitate preview scenarios.

Route/[locale]/favorites
client
Роль
Saved events page
Источник данных
client state now, cloud state later
Стратегия
client
Cache policy
browser state now, cloud policy later
Причина

Favorites belong to user state and will later move from localStorage to cloud storage.

Назад в Demo Lab