Problem
The API_URL is currently hardcoded to the production backend URL. This creates friction during local development, as developers need to manually change the production URL to a local server URL each time they work on the project.
Why this is an issue
-
Hardcoding environment-specific values makes the codebase less flexible
-
It increases the risk of accidentally committing production URLs
-
It complicates onboarding and local development workflows
Suggested improvement
Consider moving API_URL to an environment-based configuration (e.g. environment variables, config files, or build-time variables). This would allow the application to automatically switch between production, staging, and local environments without requiring code changes.