Skip to content

The API_URL is currently hardcoded to the production backend URL #1

@rajmane84

Description

@rajmane84

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions