import { Navbar } from "@/components/public/Navbar"; import { Footer } from "@/components/public/Footer"; import { FaqAccordion } from "@/components/public/FaqAccordion"; import { FaqPageJsonLd, BreadcrumbJsonLd } from "@/components/public/JsonLd"; import { apiUrl } from "@/lib/api-base"; interface FaqItem { id: string; question: string; answer: string; order: number; showOnHomepage: boolean; } // Render at request time from the live backend so the Q&A and FAQPage JSON-LD // are always present in the HTML for crawlers, never a build-time-empty shell. export const dynamic = "force-dynamic"; async function fetchFaqs(): Promise { try { const res = await fetch(apiUrl("/faqs?all=true"), { cache: "no-store" }); if (!res.ok) return []; const data = await res.json(); return Array.isArray(data) ? data : []; } catch { return []; } } export default async function FaqPage() { const items = await fetchFaqs(); return ( <> {items.length > 0 && ( ({ question: i.question, answer: i.answer }))} /> )}

Frequently Asked Questions

Everything you need to know about the Belgian Bitcoin Embassy.

{items.length === 0 ? (

No FAQs available yet.

) : ( )}