Files
openwork/ee/apps/landing/app/page.tsx
Source Open e4ef3e28dd revert(landing): restore free Windows downloads and builds (#1442)
Bring back Windows desktop artifacts in release workflows and remove the paid landing flow so Windows users can download public installers again.

Co-authored-by: src-opn <src-opn@users.noreply.github.com>
2026-04-13 14:47:15 -07:00

20 lines
616 B
TypeScript

import { LandingHome } from "../components/landing-home";
import { getGithubData } from "../lib/github";
import { headers } from "next/headers";
export default async function Home() {
const github = await getGithubData();
const cal = process.env.NEXT_PUBLIC_CAL_URL || "/enterprise#book";
const userAgent = headers().get("user-agent")?.toLowerCase() || "";
const isMobileVisitor = /android|iphone|ipad|ipod|mobile/.test(userAgent);
return (
<LandingHome
stars={github.stars}
downloadHref={github.downloads.macos}
callHref={cal}
isMobileVisitor={isMobileVisitor}
/>
);
}