Remove Feedback
Remove the in-app feedback widget and collection.
Steps
-
Delete directories and files:
app/api/feedback/(feedback submission endpoint)hooks/core/use-feedback.ts(client-side feedback hooks)- Feedback widget component from
components/(search forfeedback-widgetorfeedback)
-
Update Prisma schema (
prisma/schema.prisma):- Remove the
Feedbackmodel - Remove the
feedbacksrelation from theUsermodel
- Remove the
-
Disable the feature flag: Set
NEXT_PUBLIC_ENABLE_FEEDBACK=falsein.env, or delete the line fromlib/config/features.ts. -
Clean up references: Remove feedback widget renders from layout or dashboard components.
-
Run
pnpm db:pushto sync the schema.