compsigh / web

Web platform of compsigh, the computer science club at the University of San Francisco
https://compsigh.club
0 stars 0 forks source link

Events page prerenders now, upcoming, and past events #2

Open edwardshturman opened 2 months ago

edwardshturman commented 2 months ago

Since the /events route is prerendered as static content, the delegateEvents function — which determines whether an event is ongoing, is upcoming, or is in the past — is run at build time. What this effectively means is in its current state, we have to push a new deployment for the Events page to be up-to-date.

Desired outcome: the Events page accurately displays the status of events within at most an hour.

Fixes already attempted:

edwardshturman commented 2 months ago

Next.js caching docs might help