Configure Next.js to act as a proxy for all API routes (e.g., /api/tasks → internal tasks service) during development and production builds.