Add stable /next and /featured URLs that redirect to the current event.

These short links always resolve to the latest upcoming or featured event so they can be shared without updating when events rotate.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michilis
2026-06-27 05:35:52 +00:00
co-authored by Cursor
parent 613bd7be1d
commit f5fe87613f
6 changed files with 114 additions and 26 deletions
+2
View File
@@ -11,6 +11,8 @@ export const eventsApi = {
getById: (id: string) => fetchApi<{ event: Event }>(`/api/events/${id}`),
getNext: () => fetchApi<{ event: Event | null }>('/api/events/next'),
getNextUpcoming: () => fetchApi<{ event: Event | null }>('/api/events/next/upcoming'),
create: (data: Partial<Event>) =>