Remove Newsletter
Remove newsletter subscription functionality.
Steps
-
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 fornewsletter)
-
Update Prisma schema (
prisma/schema.prisma):- Remove the
NewsletterSubscribermodel
- Remove the
-
Disable the feature flag: Set
NEXT_PUBLIC_ENABLE_NEWSLETTER=falsein.env, or delete the line fromlib/config/features.ts. -
Clean up references: Remove any newsletter section renders from landing page or footer components.
-
Run
pnpm db:pushto sync the schema.