import { Section } from "@/components/Section"; import { db } from "@/db/db"; import { usersTable } from "@/db/schema"; import { setInitialUserData } from "@/lib/setInitialUserData"; import { cn } from "@/lib/utils"; import { auth } from "@clerk/nextjs/server"; import { eq } from "drizzle-orm"; import meta from "next-gen/config"; function isDevelopment() { return process.env.NODE_ENV === "development"; } function FeatureCard(props: { className?: string; title: React.ReactNode; description: string; }) { return (
{/*
*/}
{props.title}
{props.description}
); } export default async function Main() { const { userId } = await auth(); if (userId) { const user = await db.query.usersTable.findFirst({ where: eq(usersTable.id, userId), }); if (!user) { await setInitialUserData(userId); } } return (
{/* Hero Section */}
✨ Open Source on Github {meta.tagline} {meta.description} Get Started
{/* Find My Ports on MacBook Pro 14 */}
); }