import { getPlatformStatsServer } from "@/lib/server-api"; import { HomeNavbar } from "@/components/home-navbar"; import { Suspense } from "react"; import { Shield, LineChart, Zap, ArrowRight, CheckCircle2, Sparkles } from "lucide-react"; import { Button } from "@/components/ui/button"; import Link from "next/link"; import { AnimatedStatsSection } from "@/components/animated-stats-section"; // Force the page to be dynamically rendered export const dynamic = 'force-dynamic'; // Constants const PY_20 = 20; const PY_32 = 32; const PX_6 = 6; const PX_10 = 10; // Format number with commas function formatNumberValue(num: number): string { return new Intl.NumberFormat().format(Math.round(num)); } // Format currency function formatCurrencyValue(amount: number): string { return new Intl.NumberFormat('en-GB', { style: 'currency', currency: 'GBP', maximumFractionDigits: 0 }).format(amount); } // This is a server component export default async function Home() { try { const stats = await getPlatformStatsServer(); return (
Streamline your online business with our all-in-one platform. Secure payments, order tracking, and analytics in one place.
{feature.description}