From 5eb8edf2097b91289634f631aaef17d35916f3ce Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Tue, 30 Dec 2025 13:39:22 -0800 Subject: [PATCH] fix: add trailing slashes to API URLs for SSR compatibility --- frontend/app/[vertical]/page.tsx | 4 ++-- frontend/app/[vertical]/shows/page.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/[vertical]/page.tsx b/frontend/app/[vertical]/page.tsx index e505eef..087fb84 100644 --- a/frontend/app/[vertical]/page.tsx +++ b/frontend/app/[vertical]/page.tsx @@ -18,7 +18,7 @@ export function generateStaticParams() { async function getRecentShows(verticalSlug: string) { try { - const res = await fetch(`${getApiUrl()}/shows?vertical_slugs=${verticalSlug}&limit=8&status=past`, { + const res = await fetch(`${getApiUrl()}/shows/?vertical_slugs=${verticalSlug}&limit=8&status=past`, { next: { revalidate: 60 } }) if (!res.ok) return [] @@ -30,7 +30,7 @@ async function getRecentShows(verticalSlug: string) { async function getTopSongs(verticalSlug: string) { try { - const res = await fetch(`${getApiUrl()}/songs?vertical_slug=${verticalSlug}&limit=5&sort=times_played`, { + const res = await fetch(`${getApiUrl()}/songs/?vertical_slug=${verticalSlug}&limit=5&sort=times_played`, { next: { revalidate: 60 } }) if (!res.ok) return [] diff --git a/frontend/app/[vertical]/shows/page.tsx b/frontend/app/[vertical]/shows/page.tsx index 2fc6ac1..141ebee 100644 --- a/frontend/app/[vertical]/shows/page.tsx +++ b/frontend/app/[vertical]/shows/page.tsx @@ -14,7 +14,7 @@ export function generateStaticParams() { async function getShows(verticalSlug: string) { try { - const res = await fetch(`${getApiUrl()}/shows?vertical=${verticalSlug}`, { + const res = await fetch(`${getApiUrl()}/shows/?vertical=${verticalSlug}`, { next: { revalidate: 60 } }) if (!res.ok) return []