Removing Features
Removing Documentation
The documentation feature is relatively modular and can be safely removed:
- Edit the navigation component at
src/components/app-navbar/index.tsx
to remove the documentation link - Delete the
src/app/documentation
directory - Update any references to documentation routes in other components
Removing Blog
The blog feature is more deeply integrated and requires additional steps to remove:
- Edit the navigation component at
src/components/app-navbar/index.tsx
to remove the blog link - Delete the
src/app/blog
directory andsrc/components/blog
directory - Remove blog-related environment variables from your
.env
file - Remove blog-related schema entries from
src/db/schema/index.ts
- Create and run a migration to drop blog-related tables:
// Create a new migration file in drizzle/migrations // Example: 0012_remove_blog_tables.sql DROP TABLE IF EXISTS blog_posts_to_tags; DROP TABLE IF EXISTS blog_posts_to_categories; DROP TABLE IF EXISTS blog_tags; DROP TABLE IF EXISTS blog_categories; DROP TABLE IF EXISTS blog_images; DROP TABLE IF EXISTS blog_posts;
Run with:
pnpm run db:migrate
Note: If you're unsure, consider keeping the code but disabling access to the feature instead.