Removing Features

Removing Documentation

The documentation feature is relatively modular and can be safely removed:

  1. Edit the navigation component at src/components/app-navbar/index.tsx to remove the documentation link
  2. Delete the src/app/documentation directory
  3. Update any references to documentation routes in other components

Removing Blog

The blog feature is more deeply integrated and requires additional steps to remove:

  1. Edit the navigation component at src/components/app-navbar/index.tsx to remove the blog link
  2. Delete the src/app/blog directory and src/components/blog directory
  3. Remove blog-related environment variables from your .env file
  4. Remove blog-related schema entries from src/db/schema/index.ts
  5. 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.