Spaces:
Runtime error
Runtime error
Commit History
-
refactor: major security, performance, and API quality improvements
- Remove dangerous prisma db push --accept-data-loss (use migrate deploy with safe fallback) - Remove auto-seed on every startup (manual only via npm run db:seed) - Add compression middleware (50-80% response size reduction) - Harden JWT with jti, iss, aud claims - Secure file uploads: extension whitelist + enhanced MIME validation - Strengthen CORS with explicit whitelist instead of partial matching - Add Helmet: referrerPolicy, noSniff, xssFilter - Standardize API response structure: { success, message, data, meta } - Add API versioning: /api/v1 + /api backward compat - Add database indexes: composite indexes for users, templates, orders4a31b63