Remove Newsletter

Remove newsletter subscription functionality.

Steps

  1. Delete directories and files:

    • app/api/newsletter/ (subscribe/unsubscribe endpoints)
    • hooks/core/use-newsletter.ts (client-side newsletter hooks)
    • Newsletter section component from components/ (search for newsletter)
  2. Update Prisma schema (prisma/schema.prisma):

    • Remove the NewsletterSubscriber model
  3. Disable the feature flag: Set NEXT_PUBLIC_ENABLE_NEWSLETTER=false in .env, or delete the line from lib/config/features.ts.

  4. Clean up references: Remove any newsletter section renders from landing page or footer components.

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

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

Get LaunchFst →