deckhearth/api
Randall Stillwell 0531f25cbb Add debugging tools and optimize auth endpoints
🔧 Debugging Improvements:
- Optimize setup-auth endpoint to avoid timeouts
- Add table existence checks before operations
- Simplify permission system for faster setup
- Add environment variable validation
- Create test-db endpoint for connection debugging

🚀 Performance Optimizations:
- Break down large SQL queries into smaller chunks
- Add early returns for already-setup scenarios
- Reduce permission complexity during initial setup
- Better error messages for troubleshooting

🧪 New Debug Endpoints:
- /api/test-db - Test database connectivity
- /api/setup-auth - Optimized schema setup

These changes should resolve timeout issues and provide better debugging information for authentication problems.
2025-07-21 21:39:08 -05:00
..
admin Fix Vercel function request body parsing 2025-07-21 21:11:13 -05:00
auth Add debugging tools and optimize auth endpoints 2025-07-21 21:39:08 -05:00
v1/cards Fix Node.js 18 compatibility for Vercel deployment 2025-07-21 16:08:45 -05:00
health.ts 🚀 TCG Vault - Complete All-Vercel Setup 2025-07-21 13:53:06 -05:00
migrate.ts Fix Vercel ES module import issues 2025-07-21 16:12:24 -05:00
setup-auth.ts Add debugging tools and optimize auth endpoints 2025-07-21 21:39:08 -05:00
test-db.ts Add debugging tools and optimize auth endpoints 2025-07-21 21:39:08 -05:00
tsconfig.json Fix Vercel ES module import issues 2025-07-21 16:12:24 -05:00