deckhearth/api
Randall Stillwell 7dc8718512 Fix build issues and update dependencies
🔧 Build Fixes:
- Update Node.js version from 18.x to 22.x (required by Vercel)
- Remove debug endpoints to get under 12 function limit for Hobby plan
- Downgrade React from 19.x to 18.x for better compatibility
- Update react-router-dom to v6.28.0 (compatible with Node 22)
- Update TypeScript to v5.7.3
- Update React types to match React version

Functions count: 12/12 (at limit for Hobby plan)

Core API endpoints:
 auth/login.js, auth/register.js
 collections/index.js, collections/add-card.js
 cards/find-or-create.js
 admin/users.js, admin/promote-user.js
 setup-auth.js, simple.js
 Legacy: migrate.ts, v1/cards/[id].ts, v1/cards/index.ts
2025-07-22 08:18:51 -05:00
..
admin Fix admin users API endpoint 2025-07-22 07:36:37 -05:00
auth Remove conflicting TypeScript API files 2025-07-22 06:55:09 -05:00
cards Implement complete card scanning and collection flow - ready for local testing 2025-07-22 08:01:20 -05:00
collections Implement complete card scanning and collection flow - ready for local testing 2025-07-22 08:01:20 -05:00
v1/cards Fix Node.js 18 compatibility for Vercel deployment 2025-07-21 16:08:45 -05:00
migrate.ts Fix Vercel ES module import issues 2025-07-21 16:12:24 -05:00
setup-auth.js Convert auth endpoints to working Vercel function format 2025-07-22 06:46:09 -05:00
simple.js Add environment variable debugging to simple endpoint 2025-07-22 06:52:30 -05:00
tsconfig.json Fix Vercel ES module import issues 2025-07-21 16:12:24 -05:00