- 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>
- Add API_BASE_URL to admin ads page for proper backend communication
- Update fetch calls to use full backend URL instead of relative paths
- Remove hardcoded localhost URL from error message
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix import error in admin ads page by removing AdAnalytics component reference
- 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
Implement complete admin interface with authentication and project/version management
- Added admin login page with authentication middleware
- Created admin layout with navigation and logout functionality
- Implemented project management (list, add, delete)
- Implemented version management (list, add, edit, delete)
- Extended backend API with PUT/DELETE endpoints for versions
- Enhanced ad analytics dashboard with real data
- Updated README with admin interface documentation
- Added database schema and implementation summary documentation
This completes the admin interface implementation allowing full management of projects and versions.