fix: add missing getApiUrl import and trailing slash on homepage
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s

This commit is contained in:
fullsizemalt 2025-12-30 13:48:23 -08:00
parent 5eb8edf209
commit 1652dd230d

View file

@ -1,6 +1,7 @@
import { TieredBandList } from "@/components/home/tiered-band-list"
import { Button } from "@/components/ui/button"
import Link from "next/link"
import { getApiUrl } from "@/lib/api-config"
interface Vertical {
id: number
@ -11,7 +12,7 @@ interface Vertical {
async function getVerticals(): Promise<Vertical[]> {
try {
const res = await fetch(`${getApiUrl()}/verticals`, { next: { revalidate: 60 } })
const res = await fetch(`${getApiUrl()}/verticals/`, { next: { revalidate: 60 } })
if (!res.ok) return []
return res.json()
} catch {