- Update next.config.mjs to proxy all paths (/:path*) instead of /api/:path*
- Remove /api prefix from all frontend API calls to use original paths
- Headers now apply to all paths for comprehensive CORS coverage
- Backend URL corrected to https://logup-back.zeabur.app (no /api suffix)
This ensures all frontend API requests (/projects, /versions, /analytics)
are properly proxied to the backend with CORS headers.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Implement comprehensive CORS solution for Next.js
- Add API utility with CORS headers in lib/api.ts
- Update next.config.mjs with rewrite rules for API proxy
- Replace all fetch calls with apiFetch for consistent CORS handling
- Update all admin pages to use centralized API utilities
- Remove hardcoded localhost URLs in favor of environment variables
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Configure Vercel deployment with environment variables
- Added vercel.json configuration for backend deployment
- Updated frontend to use environment variables for API URLs
- Modified backend to use environment variables for database connection
- Added documentation for Vercel deployment configuration
- Updated README with Vercel deployment instructions