fix: add missing getApiUrl import and trailing slash on homepage
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
This commit is contained in:
parent
5eb8edf209
commit
1652dd230d
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue