From ffa3f4d86d7d4ce166007ef0ba4d12aae3445b22 Mon Sep 17 00:00:00 2001 From: Vesa Meskanen Date: Thu, 16 Jan 2025 13:09:28 +0200 Subject: [PATCH] fix: double https --- app/configurations/config.default.js | 2 +- app/configurations/config.hsl.js | 2 +- app/configurations/config.kela.js | 2 +- app/configurations/config.varely.js | 2 +- app/configurations/config.waltti.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/configurations/config.default.js b/app/configurations/config.default.js index 59e2b6eb3b..4fc8320632 100644 --- a/app/configurations/config.default.js +++ b/app/configurations/config.default.js @@ -6,7 +6,7 @@ const CONFIG = process.env.CONFIG || 'default'; const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi'; const GEOCODING_BASE_URL = process.env.GEOCODING_BASE_URL || `${API_URL}/geocoding/v1`; -const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi'; +const MAP_URL = process.env.MAP_URL || 'https://dev-cdn.digitransit.fi'; const MAP_VERSION = process.env.MAP_VERSION || 'v3'; const POI_MAP_PREFIX = `${MAP_URL}/map/v3/finland`; const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/finland/`; diff --git a/app/configurations/config.hsl.js b/app/configurations/config.hsl.js index a903052767..06949b855a 100644 --- a/app/configurations/config.hsl.js +++ b/app/configurations/config.hsl.js @@ -4,7 +4,7 @@ import { BIKEAVL_WITHMAX } from '../util/vehicleRentalUtils'; const CONFIG = 'hsl'; const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi'; const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/hsl/`; -const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi'; +const MAP_URL = process.env.MAP_URL || 'https://dev-cdn.digitransit.fi'; const POI_MAP_PREFIX = `${MAP_URL}/map/v3/hsl`; const APP_DESCRIPTION = 'Helsingin seudun liikenteen Reittiopas.'; const HSLTimetables = require('./timetableConfigUtils').default.HSL; diff --git a/app/configurations/config.kela.js b/app/configurations/config.kela.js index 634f1f0873..c2d8af7a72 100644 --- a/app/configurations/config.kela.js +++ b/app/configurations/config.kela.js @@ -7,7 +7,7 @@ const APP_TITLE = 'Reittiopas'; const APP_DESCRIPTION = 'Digitransit-reittiopas'; const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi'; const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2-kela/kela/`; -const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi'; +const MAP_URL = process.env.MAP_URL || 'https://dev-cdn.digitransit.fi'; const POI_MAP_PREFIX = `${MAP_URL}/map/v3-kela/kela`; export default { diff --git a/app/configurations/config.varely.js b/app/configurations/config.varely.js index a3752fda0e..1c594beb0a 100644 --- a/app/configurations/config.varely.js +++ b/app/configurations/config.varely.js @@ -6,7 +6,7 @@ const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi'; const APP_TITLE = 'Seutu+ reittiopas'; const APP_DESCRIPTION = 'Varsinais-Suomen ELY-keskuksen reittiopas'; const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/varely/`; -const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi'; +const MAP_URL = process.env.MAP_URL || 'https://dev-cdn.digitransit.fi'; const POI_MAP_PREFIX = `${MAP_URL}/map/v3/varely`; const walttiConfig = require('./config.waltti').default; diff --git a/app/configurations/config.waltti.js b/app/configurations/config.waltti.js index 9da6af522b..c5845e8ffb 100644 --- a/app/configurations/config.waltti.js +++ b/app/configurations/config.waltti.js @@ -1,6 +1,6 @@ const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi'; const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/waltti/`; -const MAP_URL = process.env.MAP_URL || 'https://https://dev-cdn.digitransit.fi'; +const MAP_URL = process.env.MAP_URL || 'https://dev-cdn.digitransit.fi'; const POI_MAP_PREFIX = `${MAP_URL}/map/v3/waltti`; const APP_DESCRIPTION = 'Digitransit-reittiopas'; const YEAR = 1900 + new Date().getYear();