mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
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>
20 lines
616 B
TypeScript
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}
|
|
/>
|
|
);
|
|
}
|