The brief
Longevity Beverly Hills is a physician-guided wellness brand in Beverly Hills. The client gave us a full developer brief: a premium store with large product images, animation, a quiz and a complete product journey, in the visual style of the brand's sister business. A visitor must apply and become a member before any purchase. Prescription programs need a clinical review, and some products, the peptides among them, must not be sold until their status is confirmed.
Rules we built into the code
- One membership: Membership by application opens the store and the community. The database refuses a second plan.
- No charge before a clinician approves: The payment method is saved at checkout, and the charge happens only on approval.
- No health data in the store: Clinical intake happens with the clinical partner. The store keeps a case reference and a status only.
- Nothing invented is shown as real: No seeded reviews, clinicians, credentials or before and after images. Product images carry the note "Images are illustrative."
How it works
From the quiz to an approved order
The quiz recommends a program category. The visitor then applies for membership, and the approval link that we send to the mailbox proves the email address. A member chooses a program and checks out, and the store saves the payment method. The order goes to clinical review through a driver for the clinical partner. Only an approved case lets the payment capture run, and a decline closes the order with nothing to refund.
Payments and clinical review behind adapters
The brief leaves the live payment processor open, so payments sit behind a driver. The preview uses a simulated driver, and the live stage refuses it at startup. The clinical handoff works the same way, with a simulated driver until the partner supplies its API. The reconcile job retries a charge with the same idempotency key when the result is unknown, and a refund request that times out stays open until the processor answers.
Security in the database
The browser has no database client. Pages read through server components and write through server actions, and row level security checks every table. Staff-only columns are not granted to public roles, and each admin action starts with a role check that the database checks again. Over 16 migrations, the sale lock, the one-membership rule and the approval rule live in Postgres, not only in page code.
What we delivered
Problems worth talking about
A lock that staff cannot go around
No answer is not a no
Back button without hijacking
Images that match their products
Where it stands
What we can and cannot claim
This is a preview build for the client's review, not a launched store. Offers, prices and availability are placeholders that need clinical and legal review, payments and the clinical handoff are simulated, and the site is not indexed. The catalog, category, screen and migration counts on this page come from the code. We make no claims about any treatment or product: peptide topics appear as research interests, not benefits. There is no traffic, conversion or revenue data yet, so this page gives none.
What This Project Does Well
Technologies Used
Next.js 16.4 App Router with Cache Components, React 19.3, TypeScript, Tailwind CSS 4.3, Motion 14, GSAP 3 ScrollTrigger, Zod 4, Supabase (Auth and Postgres with row level security), Resend, Vercel with scheduled jobs, Higgsfield for the image set
Ask AI for a summary of Longevity Beverly Hills by Frenchy Digital.
Open your assistant of choice with the question already written.
Ready to Build Something Similar?
Let's discuss how we can help transform your business with a custom digital solution.