// app/page.tsx // // CORE MVP PAGE // Purpose: // 1. Explain the automation // 2. Point the user to the next action // // Everything else lives elsewhere. import { cookies } from "next/headers"; import { redirect } from "next/navigation"; export default async function Home() { const cookieStore = await cookies(); const session = cookieStore.get("session"); // ✅ If already logged in, go straight to app if (session) { redirect("/app"); } return (
{/* -------------------------------------------------- What this is -------------------------------------------------- */}

Stripe → Xero automation

When a Stripe payment succeeds, a Xero invoice is automatically created and marked as paid.

{/* -------------------------------------------------- What the user does -------------------------------------------------- */}

How it works

  1. Log in with your email
  2. Connect Stripe
  3. Connect Xero
  4. Invoices handle themselves. You focus on the business.
{/* -------------------------------------------------- Next action -------------------------------------------------- */}

Start by logging in.

Log in →
); }