- ✅
server/api/routes/health.ts.bak - ✅
server/auth.ts.bak - ✅
server/routes/trinity-autonomous-resonance.ts.backup - ✅
client/src/pages/MobileNonprofitHub.tsx.bak
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
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)
⚠️ .cache/- Protected by Replit (contains system files, cannot delete)⚠️ .local/state/- Protected by Replit (agent state, cannot delete)
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
Total Files Removed: 24 bloat files Estimated Space Saved: ~2-5 MB Impact: Cleaner codebase, faster deployments
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
To further reduce deployment size:
-
Manual .replit cleanup (CRITICAL):
- Remove 15 extra port configurations
- Keep only port 5000 → 80
-
Optional package cleanup:
npm prune npm dedupe
-
Deploy:
- With cleanups +
.dockerignore, should be under 8 GiB - Or switch to Reserved VM if needed
- With cleanups +
Generated: 2025-11-05