- helpers puros movidos utilities->lib: slug, phone, wordStartFilter, voteEstimate (9 inversoes lib->utilities zeradas) - chaves de consent em src/lib/campaignConsentKeys.ts (client-safe); campaignInvite/campaignConsent re-exportam; onda0ConsentTexts referencia as constantes - 'server-only' em 21 loaders Payload/cache (CLI segue com --conditions=react-server) - ciclo de tipos supporterListFilters <-> supporterUi quebrado (SupporterListFilterInput estrutural; sqlFilters idem) - votePledgeData dividido: votePledgeViews (puro, client-safe) + votePledgeData (loaders, server-only) - padrao contract-module - predicados de role client-safe em src/lib/campaignRoles.ts; access/shared deriva deles (fonte unica); nav.ts para de importar o barrel campaignAccess (casts 'as CampaignUser' eliminados)
9 lines
385 B
TypeScript
9 lines
385 B
TypeScript
import 'server-only'
|
|
|
|
/**
|
|
* Cache tag for every `unstable_cache` entry derived from the immutable TSE
|
|
* election collections (2014/2018/2022). The data only changes when the seed
|
|
* is re-run (`pnpm db:seed:tse`), so the runbook is: re-seed → `POST
|
|
* /api/revalidate?tag=election-tse` (see revalidateRequest.ts allowlist).
|
|
*/
|
|
export const ELECTION_TSE_CACHE_TAG = 'election-tse'
|