Remove Payments

Strip out the entire billing and subscription system.

Steps

  1. Delete directories and files:

    • lib/payments/ (payment provider abstraction)
    • app/api/billing/ (checkout, portal, subscription endpoints)
    • app/api/webhooks/ (LemonSqueezy/Polar webhook handlers)
    • hooks/core/use-billing.ts (client-side billing hooks)
    • app/(dashboard)/dashboard/billing/ (billing settings page)
  2. Update Prisma schema (prisma/schema.prisma):

    • Remove the Plan enum (FREE, STARTER, PRO, ENTERPRISE)
    • Remove the SubStatus enum (INACTIVE, ACTIVE, TRIALING, etc.)
    • Remove these fields from the User model: plan, subscriptionStatus, customerId, subscriptionId, planPeriodEnd
  3. Clean up config:

    • Delete lib/config/pricing.ts
    • Remove pricing-related nav links from siteConfig in lib/config/site.ts
  4. Remove env vars: PAYMENT_PROVIDER, LEMONSQUEEZY_*, POLAR_*

  5. Run pnpm db:push to sync the schema.

Demo Mode — Explore freely. Some actions are restricted. demo@launchfst.dev / demo1234

Get LaunchFst →