Skip to content

[Bug]: Remove Hardcoded Firebase Function URL and Replace with Environment-Based Configuration #55

@sohampirale

Description

@sohampirale

Description

The calibration webhook URL is currently hardcoded in the backend, which tightly couples the application logic to a specific Firebase/Cloud Run deployment. This creates several issues:

  • Breaks local development when using Firebase emulators

Current Problem

Because the function URL is hardcoded, the calibration test does not complete successfully in environments where the URL differs. As a result, the calibration data is not properly sent to the registered Firebase function, and the calibration flow remains unfulfilled.

Screencast.from.2026-02-08.08-53-49.webm

Proposed Solution

  • Replace the hardcoded function URL with an environment variable (e.g., FUNCTIONS_ENDPOINT_URL) that stores the full endpoint URL.
  • Add USE_EMULATORS env variable for emulators/firebase url

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions