Summary
There is a conflict between two backend URLs:
backend/src/main/resources/application.conf sets baseUrl = "https://stg.fuel-finder.ics.gov.uk" (staging)
Application.kt defaults to the production URL "https://fuel-finder.service.gov.uk" if the config key is absent
This means the deployed backend may be hitting the staging UK Gov API depending on how the config file is packaged, serving stale or test data to real users.
What to change
- Decide on a single source of truth: use
application.conf for all environments
- Create environment-specific config files:
application.conf — production (production URL)
application-dev.conf — development/staging URL
- Set
KTOR_ENV=dev or equivalent in the dev deployment
- Add a startup log line confirming which URL is active:
log.info("Fuel Finder baseUrl: $baseUrl")
- Rotate any credentials if staging/prod tokens have been mixed
Workstream: WS1 Phase 1A
Summary
There is a conflict between two backend URLs:
backend/src/main/resources/application.confsetsbaseUrl = "https://stg.fuel-finder.ics.gov.uk"(staging)Application.ktdefaults to the production URL"https://fuel-finder.service.gov.uk"if the config key is absentThis means the deployed backend may be hitting the staging UK Gov API depending on how the config file is packaged, serving stale or test data to real users.
What to change
application.conffor all environmentsapplication.conf— production (production URL)application-dev.conf— development/staging URLKTOR_ENV=devor equivalent in the dev deploymentlog.info("Fuel Finder baseUrl: $baseUrl")Workstream: WS1 Phase 1A