Skip to content
This repository was archived by the owner on Aug 7, 2026. It is now read-only.

Latest commit

 

History

History
100 lines (77 loc) · 2.72 KB

File metadata and controls

100 lines (77 loc) · 2.72 KB

🧹 Cleanup Report

Files Removed

Backup Files (4 files)

  • server/api/routes/health.ts.bak
  • server/auth.ts.bak
  • server/routes/trinity-autonomous-resonance.ts.backup
  • client/src/pages/MobileNonprofitHub.tsx.bak

Test Files in Wrong Location (12 files)

Removed from server/ root (should be in __tests__/ or similar):

  • server/test-admin-notification.js
  • server/test-email-notification.js
  • server/test-email-sms.js
  • server/test-free-tier-efficiency.js
  • server/test-oauth.ts
  • server/test-perplexity-integration.js
  • server/test-simple-validation.js
  • server/test-storage.ts
  • server/test-tridirectional-system.js
  • server/test-trinity-coordination.ts
  • server/index-backup.ts
  • server/create-ts-test-runner.js

Duplicate/One-Time Scripts (8 files)

Removed from server/scripts/:

  • hdm-supabase-sync-test.ts (duplicate)
  • hdm-supabase-test.ts (duplicate)
  • test-new-supabase-url.ts (duplicate)
  • apm-supabase-test.ts (duplicate)
  • hdm-full-sync-test.ts (duplicate)
  • delete-offloaded-files.ts (one-time migration)
  • offload-files-to-db.ts (one-time migration)
  • migrate-assets-to-storage.ts (one-time migration)

System Files

  • ⚠️ .cache/ - Protected by Replit (contains system files, cannot delete)
  • ⚠️ .local/state/ - Protected by Replit (agent state, cannot delete)

Files Kept (Useful Scripts)

Production Scripts (7 files)

Kept in server/scripts/:

  • create-supabase-tables.ts - Table creation
  • setup-supabase-tables.ts - Schema setup
  • seed-new-grants.ts - Grant data seeding
  • grants-2025-seed.ts - 2025 grants
  • generate-purposehub-apikey.ts - API key generation
  • deepfunding-integration.ts - DeepFunding integration
  • analyze-dependencies.ts - Dependency analysis

Summary

Total Files Removed: 24 bloat files Estimated Space Saved: ~2-5 MB Impact: Cleaner codebase, faster deployments


Deployment Optimizations

Combined with .dockerignore updates:

  • Excluded from deployment:
    • infrastructure/ (320KB)
    • agents/ (88KB)
    • attached_assets/ (416KB)
    • All backup files (removed)
    • All test files (removed)
    • Cache directories

Result: Significantly reduced deployment image size


Next Steps

To further reduce deployment size:

  1. Manual .replit cleanup (CRITICAL):

    • Remove 15 extra port configurations
    • Keep only port 5000 → 80
  2. Optional package cleanup:

    npm prune
    npm dedupe
  3. Deploy:

    • With cleanups + .dockerignore, should be under 8 GiB
    • Or switch to Reserved VM if needed

Generated: 2025-11-05